nvim: lsp: Drop use of deprecated buf_get_clients

This commit is contained in:
Sanchayan Maity 2024-07-10 20:07:23 +05:30
parent f725a4e354
commit 0a323f355f
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -122,7 +122,7 @@ local cargo_reload_workspace = function()
end
local get_active_client_by_name = function(bufnr, servername)
for _, client in pairs(vim.lsp.buf_get_clients(bufnr)) do
for _, client in pairs(vim.lsp.get_clients({ bufnr = bufnr })) do
if client.name == servername then
return client
end