nvim: fix: replace deprecated function

This commit is contained in:
qwjyh 2024-06-18 20:34:54 +09:00
parent 372040d1d7
commit 0d16da2b31

View file

@ -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, ', ')