Skip to content

Commit

Permalink
Fix breaking change of cmp-nvim-lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
minghongx committed Oct 19, 2022
1 parent 0a1ddf7 commit f275e6d
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 @@ -9,8 +9,7 @@ end

-- Add additional capabilities supported by nvim-cmp
-- See: https://github.com/neovim/nvim-lspconfig/wiki/Autocompletion
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
local capabilities = require('cmp_nvim_lsp').default_capabilities()

for _, server in ipairs(servers) do
lspconfig[server].setup {
Expand Down

0 comments on commit f275e6d

Please sign in to comment.