home: vim: lua: utils: fix deprecated function
This commit is contained in:
parent
4a8981c7b4
commit
56e158f5c5
|
@ -44,7 +44,7 @@ end
|
||||||
--- @param bufnr int? buffer number
|
--- @param bufnr int? buffer number
|
||||||
--- @return table all active LSP client names
|
--- @return table all active LSP client names
|
||||||
M.list_lsp_clients = function(bufnr)
|
M.list_lsp_clients = function(bufnr)
|
||||||
local clients = vim.lsp.buf_get_clients(bufnr)
|
local clients = vim.lsp.get_active_clients({ bufnr = bufnr or 0 })
|
||||||
local names = {}
|
local names = {}
|
||||||
|
|
||||||
for _, client in ipairs(clients) do
|
for _, client in ipairs(clients) do
|
||||||
|
|
Loading…
Reference in a new issue