diff --git a/nvim/lua/user/plugins/ide/lsp.lua b/nvim/lua/user/plugins/ide/lsp.lua index 0f10f11..94dfa43 100644 --- a/nvim/lua/user/plugins/ide/lsp.lua +++ b/nvim/lua/user/plugins/ide/lsp.lua @@ -117,7 +117,12 @@ return { capabilities = capabilities }, server_opts or {}) - lspconfig[server].setup(server_opts) + if vim.fn.has('nvim-0.11') then + vim.lsp.config(server, server_opts) + vim.lsp.enable(server) + else + lspconfig[server].setup(server_opts) + end end local have_mason, mlsp = pcall(require, "mason-lspconfig")