home/neovim: require('lspconfig')-framework is deprecated. Use vim.lsp.config instead
This commit is contained in:
parent
0f90fed5d4
commit
72889504e0
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue