nvim: fix: replace deprecated function
This commit is contained in:
parent
372040d1d7
commit
0d16da2b31
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
-- https://qiita.com/uhooi/items/99aeff822d4870a8e269
|
-- https://qiita.com/uhooi/items/99aeff822d4870a8e269
|
||||||
local lsp_names = function ()
|
local lsp_names = function ()
|
||||||
local clients = {}
|
local clients = {}
|
||||||
for _, client in ipairs(vim.lsp.get_active_clients({ bufnr = 0})) do
|
for _, client in ipairs(vim.lsp.get_clients({ bufnr = 0})) do
|
||||||
table.insert(clients, client.name)
|
table.insert(clients, client.name)
|
||||||
end
|
end
|
||||||
return ' ' .. table.concat(clients, ', ')
|
return ' ' .. table.concat(clients, ', ')
|
||||||
|
|
Loading…
Reference in a new issue