Skip to content

Commit

Permalink
fix(lsp): only load cmp-nvim-lsp when cmp is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 24, 2023
1 parent 1b3b18d commit b81dc71
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/lazyvim/plugins/lsp/init.lua
Expand Up @@ -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 = {
Expand Down

0 comments on commit b81dc71

Please sign in to comment.