1
Fork 0

Clean up neovim modules

Additionally, hack my way around smos issues
This commit is contained in:
Matei Adriel 2024-01-12 01:01:22 +01:00
parent 74cc26d88c
commit b737d4e7ab
No known key found for this signature in database
11 changed files with 79 additions and 889 deletions
home/features/neovim/config/lua/my

View file

@ -276,6 +276,14 @@ function M.prepareLazySpec(spec)
end
end
local initType = type(module.init)
if initType == "function" or initType == "table" then
local previousInit = module.init
module.init = function(lazy, opts)
M.configure(previousInit, { lazy = lazy, opts = opts })
end
end
if module.keys ~= nil then
if type(module.keys) == "string" or module.keys.mapping ~= nil then
module.keys = { module.keys }