1
0
Fork 0

home/neovim: require('lspconfig')-framework is deprecated. Use vim.lsp.config instead

This commit is contained in:
yushyin 2025-12-19 00:33:27 +01:00
parent 0f90fed5d4
commit 72889504e0

View file

@ -66,8 +66,6 @@ return {
})
end,
after = function()
local lspconf = require'lspconfig'
local configs = {
lua_ls = {
settings = {
@ -91,7 +89,8 @@ return {
local servers = require('hm-extra').lspconf.servers
for _,server in ipairs(servers) do
lspconf[server].setup(configs[server])
vim.lsp.config(server, configs[server])
vim.lsp.enable(server)
end
end