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

This commit is contained in:
Folke Lemaitre 2023-01-24 07:50:07 +01:00
parent 1b3b18d53b
commit b81dc71211
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

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 = {