Clean up neovim modules
Additionally, hack my way around smos issues
This commit is contained in:
parent
74cc26d88c
commit
b737d4e7ab
11 changed files with 79 additions and 889 deletions
home/features/neovim/config/lua/my
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue