update:nvim11->12 config
This commit is contained in:
16
nvim/lua/utils/lazy.lua
Normal file
16
nvim/lua/utils/lazy.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
local M = {}
|
||||
|
||||
local loaded = {}
|
||||
|
||||
function M.load_once(key, specs, setup)
|
||||
if loaded[key] then
|
||||
return
|
||||
end
|
||||
loaded[key] = true
|
||||
vim.pack.add(specs)
|
||||
if setup then
|
||||
setup()
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user