fix(lsp): only load cmp-nvim-lsp when cmp is enabled
This commit is contained in:
1 file changed
+6
-1
@@ -8,7 +8,12 @@ return {
|
||||
{ "folke/neodev.nvim", opts = { experimental = { pathStrict = true } } },
|
||||
"mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
{
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
cond = function()
|
||||
require("lazyvim.util").has("cmp")
|
||||
end,
|
||||
},
|
||||
},
|
||||
---@class PluginLspOpts
|
||||
opts = {
|
||||
|
||||
Reference in new issue
Block a user