Skip to content

Commit

Permalink
fix: cmp_nvim_lsp.update_capabilities is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ttys3 committed Feb 10, 2023
1 parent 84851a0 commit adaa0d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/config/nvim-lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ require("lsp").setup_item_kind_icons()
require("lsp").setup_lsp_doc_border()

-- nvim-cmp related config
local capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities())
-- https://github.com/hrsh7th/cmp-nvim-lsp/issues/38#issuecomment-1279744539
local capabilities = require("cmp_nvim_lsp").default_capabilities()

--@param client: (required, vim.lsp.client)
local mix_attach = function(client)
Expand Down

0 comments on commit adaa0d2

Please sign in to comment.