Skip to content

Commit

Permalink
lsp: remove conflicting capability settings
Browse files Browse the repository at this point in the history
e.g. causing selection of first item cycling through lsp results, e.g.
with rust analyzer
  • Loading branch information
ttytm committed Oct 17, 2024
1 parent 39cd5a2 commit b22b6a7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lua/nxvim/lsp/plugins/mason/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ capabilities.textDocument.foldingRange = {
lineFoldingOnly = true,
}

local cmp_ok, cmp_nvim_lsp = pcall(require, "cmp_nvim_lsp")
if cmp_ok then
capabilities.textDocument.completion.completionItem.snippetSupport = true
capabilities = cmp_nvim_lsp.default_capabilities(capabilities)
end

local function on_attach(client, bufnr)
-- Attach keymaps and commands.
require("nxvim.lsp").on_attach(client, bufnr)
Expand Down

0 comments on commit b22b6a7

Please sign in to comment.