2024-08-18 14:17:27 +02:00
|
|
|
local version_required = 'nvim-0.8.0'
|
2022-08-15 13:25:38 +02:00
|
|
|
-- 0.7.0 features we need:
|
|
|
|
-- - autocommands in Lua
|
|
|
|
-- - bind key mappings directly to Lua functions
|
2022-09-26 19:03:18 +02:00
|
|
|
-- - desc in keymaps
|
2024-08-18 14:17:27 +02:00
|
|
|
-- 0.8.0 features we need:
|
|
|
|
-- - dunno, needed for lazy.nvim
|
|
|
|
-- - CursorHold fix
|
2022-08-15 13:25:38 +02:00
|
|
|
if vim.fn.has(version_required) == 0 then
|
|
|
|
print("💥 need " .. version_required .. ", config files will NOT be read!")
|
|
|
|
return nil
|
2022-08-13 19:10:19 +02:00
|
|
|
end
|
|
|
|
|
2022-09-11 00:34:31 +02:00
|
|
|
-- use the vim plugins installed via the OS package manager
|
|
|
|
if vim.fn.isdirectory('/usr/share/vim/vimfiles') == 1 then
|
|
|
|
vim.opt.runtimepath:append('/usr/share/vim/vimfiles')
|
|
|
|
end
|
|
|
|
|
2024-08-18 14:17:27 +02:00
|
|
|
require('my/early')
|
2022-08-15 01:29:31 +02:00
|
|
|
require('my.functions')
|
2024-08-18 14:17:27 +02:00
|
|
|
require('my/lazy')
|
|
|
|
require('my/options')
|
2024-09-03 11:38:45 +02:00
|
|
|
require ('my/keybindings')
|
2022-08-13 19:12:11 +02:00
|
|
|
require('my/filetypes')
|
2024-09-03 11:38:45 +02:00
|
|
|
require('my/git')
|
2024-09-03 20:06:10 +02:00
|
|
|
require('my/lsp')
|
|
|
|
require('my/net')
|