feat(lazy): allow for hot loading plugin specs

This commit is contained in:
2024-04-21 03:20:28 +02:00
parent 2e36ef05d9
commit ac1e40bfee
31 changed files with 683 additions and 831 deletions
+10 -10
View File
@@ -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,
}