Skip to content

Commit

Permalink
fix(conditions): remove deprecated get_active_clients
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelot committed May 21, 2024
1 parent 2feb973 commit d70c5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/heirline/conditions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function M.has_diagnostics()
end

function M.lsp_attached()
return next(vim.lsp.buf_get_clients()) ~= nil
return next(vim.lsp.get_clients({ bufnr = 0 })) ~= nil
end

return M

0 comments on commit d70c5d6

Please sign in to comment.