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
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ end
--- @param bufnr int? buffer number
--- @return table all active LSP client names
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 = {}
for _, client in ipairs(clients) do