fix(lsp): only load cmp-nvim-lsp when cmp is enabled

This commit is contained in:
Folke Lemaitre committed 2023-01-24 07:50:07 +01:00
1 parent 1b3b18d53b
commit b81dc71211
1 file changed
+6 -1
+6 -1
View File
@@ -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 = {