feat(lazy): allow for hot loading plugin specs
This commit is contained in:
+10
-10
@@ -1,12 +1,12 @@
|
||||
-- https://github.com/onsails/lspkind.nvim
|
||||
|
||||
local function setup()
|
||||
local ok, _ = pcall(require, "nvim-cmp")
|
||||
if ok then
|
||||
-- configured and loaded in plugins.config.cmp
|
||||
else
|
||||
require("lspkind").init()
|
||||
end
|
||||
end
|
||||
|
||||
return setup
|
||||
---@type LazyPluginSpec
|
||||
return {
|
||||
"onsails/lspkind.nvim",
|
||||
config = function()
|
||||
local ok, _ = pcall(require, "nvim-cmp")
|
||||
if not ok then
|
||||
require("lspkind").init()
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user