nvim: Replace cmp.update_capabilities with default_capabilities

This commit is contained in:
Sijmen 2022-10-18 15:36:15 +02:00
parent c1a3511c78
commit e76e7956a0
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48

View file

@ -90,9 +90,7 @@ local on_attach = function(client, bufnr)
vim.keymap.set('n', '<space>f', vim.lsp.buf.formatting, bufopts)
end
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities)
local capabilities = require("cmp_nvim_lsp").default_capabilities()
local lspconfig = require("lspconfig")
local servers = { "rnix", "pyright", "rust_analyzer" }