Skip to content

Commit

Permalink
refactor: don't use deprecated get_active_clients
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Sep 22, 2023
1 parent b4f21e6 commit c4d441c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/native/lua/konrad/lsp/event_handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ M.detach = function(client, bufnr)

registry.deregister(client, bufnr)

local clients = vim.lsp.get_active_clients({ bufnr = bufnr })
local clients = vim.lsp.get_clients({ bufnr = bufnr })
-- don't remove if more than 1 client attached
-- 1 is allowed, since detach runs just before detaching from buffer
if #clients <= 1 then
Expand Down

0 comments on commit c4d441c

Please sign in to comment.