home: vim: lua: utils: allow querying all clients
ci/woodpecker/push/check Pipeline was successful Details

This commit is contained in:
Bruno BELANYI 2024-03-12 12:42:21 +00:00
parent 0108b06a02
commit 070df03b7e
1 changed files with 2 additions and 2 deletions

View File

@ -40,11 +40,11 @@ M.is_ssh = function()
return false
end
--- list all active LSP clients for current buffer
--- list all active LSP clients for specific buffer, or all buffers
--- @param bufnr int? buffer number
--- @return table all active LSP client names
M.list_lsp_clients = function(bufnr)
local clients = vim.lsp.get_active_clients({ bufnr = bufnr or 0 })
local clients = vim.lsp.get_active_clients({ bufnr = bufnr })
local names = {}
for _, client in ipairs(clients) do