nvim: lsp: Drop use of deprecated buf_get_clients
This commit is contained in:
parent
f725a4e354
commit
0a323f355f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue