home: vim: lua: utils: fix deprecated function

This commit is contained in:
Bruno BELANYI 2024-03-12 12:30:36 +00:00
parent 4a8981c7b4
commit 56e158f5c5

View file

@ -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