Skip to content

Commit

Permalink
fix: cmp_nvim_lsp capabilities syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanpetterson committed Jan 16, 2023
1 parent 1357433 commit 614b5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .config/nvim/lsp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ local on_attach = function(client, bufnr)
buf_set_keymap("n", "<space>f", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
end

local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities())
local lspconfig = require'lspconfig'
lspconfig.rust_analyzer.setup {
on_attach = on_attach,
Expand Down

0 comments on commit 614b5b3

Please sign in to comment.