Skip to content

Commit

Permalink
[nvim] Adjust to cmp API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
psliwka committed Nov 30, 2022
1 parent c678c8c commit 472352e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/.config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if pcall(require, 'packer') then require('packer').startup(function(use)
-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches
local servers = { 'pyright', 'gopls', 'sumneko_lua', 'ansiblels' }
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
local capabilities = require('cmp_nvim_lsp').default_capabilities()
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {
on_attach = on_attach,
Expand Down

0 comments on commit 472352e

Please sign in to comment.