From fd33cb2846b45486371de1b0a432569c39770fcd Mon Sep 17 00:00:00 2001 From: t0xa Date: Fri, 3 Oct 2025 20:18:17 +0300 Subject: [PATCH] lspconfig: fix deprecated method --- lua/custom/lsp.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/custom/lsp.lua b/lua/custom/lsp.lua index 3ab8d79..4d9f1f8 100644 --- a/lua/custom/lsp.lua +++ b/lua/custom/lsp.lua @@ -1,5 +1,3 @@ -local lspconfig = require("lspconfig") - local keymap = vim.keymap local capabilities = nil @@ -147,7 +145,7 @@ for name, config in pairs(servers) do capabilities = capabilities, }, config) - lspconfig[name].setup(config) + vim.lsp.config[name] = config end -- Here it is used the LSP server attaches to file