Skip to content

Commit

Permalink
fix(nvim): cmp-nvim-lsp update breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
Black Napalm committed Oct 16, 2022
1 parent 67826ab commit f5ca752
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions private_dot_config/nvim/lua/user/lsp/handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,11 @@ M.on_attach = function(client)
lsp_highlight_document(client)
end

local capabilities = vim.lsp.protocol.make_client_capabilities()

local status_ok, cmp_nvim_lsp = pcall(require, "cmp_nvim_lsp")
if not status_ok then
return
end

M.capabilities = cmp_nvim_lsp.update_capabilities(capabilities)
M.capabilities = cmp_nvim_lsp.default_capabilities()

return M

0 comments on commit f5ca752

Please sign in to comment.