mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(lsp): only load cmp-nvim-lsp when cmp is enabled
This commit is contained in:
parent
1b3b18d53b
commit
b81dc71211
1 changed files with 6 additions and 1 deletions
|
@ -8,7 +8,12 @@ return {
|
||||||
{ "folke/neodev.nvim", opts = { experimental = { pathStrict = true } } },
|
{ "folke/neodev.nvim", opts = { experimental = { pathStrict = true } } },
|
||||||
"mason.nvim",
|
"mason.nvim",
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
{
|
||||||
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
|
cond = function()
|
||||||
|
require("lazyvim.util").has("cmp")
|
||||||
|
end,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
---@class PluginLspOpts
|
---@class PluginLspOpts
|
||||||
opts = {
|
opts = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue