nvim: Replace cmp.update_capabilities with default_capabilities
Some checks failed
continuous-integration/drone/push Build is failing

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) vim.keymap.set('n', '<space>f', vim.lsp.buf.formatting, bufopts)
end end
local capabilities = require("cmp_nvim_lsp").default_capabilities()
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities)
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")
local servers = { "rnix", "pyright", "rust_analyzer" } local servers = { "rnix", "pyright", "rust_analyzer" }