Skip to content

Commit

Permalink
fix(cmp): trigger cmp selection behavior correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesChiuGit committed Jun 27, 2024
1 parent f754ad4 commit 2f54e4c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/modules/configs/completion/mason-lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ M.setup = function()
})

local opts = {
capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities()),
-- capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities()),
capabilities = vim.tbl_deep_extend(
"force",
vim.lsp.protocol.make_client_capabilities(),
require("cmp_nvim_lsp").default_capabilities()
),
}
---A handler to setup all servers defined under `completion/servers/*.lua`
---@param lsp_name string
Expand Down

0 comments on commit 2f54e4c

Please sign in to comment.