fix warning for lspconfig

This commit is contained in:
cedricreper 2025-10-17 14:56:54 +09:00
parent 2863cec92c
commit ab58d1a503
1 changed files with 3 additions and 1 deletions

View File

@ -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,
},
}