Skip to content

Commit

Permalink
update due to deprecated method hrsh7th/cmp-nvim-lsp#38
Browse files Browse the repository at this point in the history
  • Loading branch information
suicide committed Oct 18, 2022
1 parent ea6dc68 commit d271036
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions after/plugin/conf-lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,11 @@ local on_attach = function(client, bufnr)
end

local function config(_config)
local capabilities = cmp_lsp.update_capabilities(
vim.lsp.protocol.make_client_capabilities()
)
local capabilities = cmp_lsp.default_capabilities()

capabilities.textDocument.completion.completionItem.snippetSupport = true

return vim.tbl_deep_extend("force", {
-- capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()),
capabilities = capabilities,
on_attach = on_attach,
}, _config or {})
Expand Down

0 comments on commit d271036

Please sign in to comment.