fix(lspkind): add fallback when nvim-cmp is not installed
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
-- https://github.com/onsails/lspkind.nvim
|
||||
|
||||
-- configured and loaded in plugins.config.cmp
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user