From ab58d1a50318a755eac2f697d03720763c2b0268 Mon Sep 17 00:00:00 2001 From: cedricreper Date: Fri, 17 Oct 2025 14:56:54 +0900 Subject: [PATCH] fix warning for lspconfig --- lua/plugins/lsp.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index e381e9dd..8d8b4833 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -259,7 +259,9 @@ return { -- by the server configuration above. Useful when disabling -- certain features of an LSP (for example, turning off formatting for ts_ls) server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {}) - require('lspconfig')[server_name].setup(server) + + -- Use the new vim.lsp.config API for Neovim 0.11+ + vim.lsp.config(server_name, server) end, }, }