Skip to content

Commit

Permalink
lsp(cmp): work around completion item resolution issue
Browse files Browse the repository at this point in the history
causing unintentional confirm on a completion when cycling through items

Ref.: hrsh7th/cmp-nvim-lsp#72
  • Loading branch information
ttytm committed Nov 27, 2024
1 parent 5d8bfe0 commit 32c7c09
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/nxvim/lsp/plugins/mason/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ local opts = {
require("nxvim.lsp.plugins.lspsaga").on_attach(client, bufnr)
end,
}
opts.capabilities = {
textDocument = {
completion = {
completionItem = {
snippetSupport = false,
},
},
},
}

-- `:h mason-lspconfig-dynamic-server-setup`
mason_lspconfig.setup_handlers({
Expand Down

0 comments on commit 32c7c09

Please sign in to comment.