fix(nvim): update to comply with breaking changes in plugins

This commit is contained in:
Price Hiller 2022-10-16 17:06:27 -05:00
parent d6f8206d8c
commit 35989d49a6
2 changed files with 918 additions and 912 deletions

View File

@ -14,7 +14,7 @@ local function on_attach(client, bufnr)
}) })
end end
local lsp_capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()) local lsp_capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities())
local opts = { local opts = {
capabilities = lsp_capabilities, capabilities = lsp_capabilities,
on_attach = on_attach, on_attach = on_attach,
@ -159,11 +159,17 @@ lspconfig.ansiblels.setup({
}) })
-- NOTE: LUA LSP -- NOTE: LUA LSP
local luadev = require("lua-dev").setup({ local luadev = require("neodev").setup({})
lspconfig = opts,
})
lspconfig.sumneko_lua.setup(luadev) lspconfig.sumneko_lua.setup({
settings = {
Lua = {
completion = {
callSnippet = "Replace",
},
},
},
})
-- NOTE: SQL LSP -- NOTE: SQL LSP
lspconfig.sqls.setup({ lspconfig.sqls.setup({

View File

@ -340,7 +340,7 @@ return packer.startup({
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
requires = { requires = {
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-nvim-lsp",
"folke/lua-dev.nvim", "folke/neodev.nvim",
"Decodetalkers/csharpls-extended-lsp.nvim", "Decodetalkers/csharpls-extended-lsp.nvim",
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
"nanotee/sqls.nvim", "nanotee/sqls.nvim",