nvim: stop reading config if nvim is too old
This commit is contained in:
parent
9c00db7620
commit
27dedd8400
@ -1,5 +1,10 @@
|
||||
if vim.fn.has('nvim-0.7.0') == 0 then
|
||||
print("Old version detected. Some stuff will probably not work.")
|
||||
local version_required = 'nvim-0.7.0'
|
||||
-- 0.7.0 features we need:
|
||||
-- - autocommands in Lua
|
||||
-- - bind key mappings directly to Lua functions
|
||||
if vim.fn.has(version_required) == 0 then
|
||||
print("💥 need " .. version_required .. ", config files will NOT be read!")
|
||||
return nil
|
||||
end
|
||||
|
||||
require('my/plugins')
|
||||
|
Loading…
x
Reference in New Issue
Block a user