Skip to content

Commit

Permalink
🥅 remove deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
Kibadda committed Oct 17, 2022
1 parent 9b0e69b commit 7a66239
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/user/lsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ end
---get capabilities
---@return table
function M.get_capabilities()
local capabilities = vim.lsp.protocol.make_client_capabilities()
local capabilities
if PluginsOk "cmp_nvim_lsp" then
capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities)
capabilities = require("cmp_nvim_lsp").default_capabilities()
else
capabilities = vim.lsp.protocol.make_client_capabilities()
end

return capabilities
Expand Down

0 comments on commit 7a66239

Please sign in to comment.