Skip to content

Commit

Permalink
cmp-nvim-lsp: Breaking changes
Browse files Browse the repository at this point in the history
cmp_nvim_lsp.update_capabilities is deprecated

hrsh7th/cmp-nvim-lsp#38
  • Loading branch information
alkaloidbit committed Oct 15, 2022
1 parent ded242a commit 3af70e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/plugins/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ local function make_config(server_name)
-- Setup base config for each server.
local c = {}
c.on_attach = on_attach
local cap = vim.lsp.protocol.make_client_capabilities()
c.capabilities = require('cmp_nvim_lsp').update_capabilities(cap)
c.capabilities = require('cmp_nvim_lsp').default_capabilities()

-- Merge user-defined lsp settings.
-- These can be overridden locally by lua/lsp-local/<server_name>.lua
Expand Down

0 comments on commit 3af70e1

Please sign in to comment.