Skip to content

Commit

Permalink
fix(defaults): use api.get_clients() (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
icholy authored May 17, 2024
1 parent a744d92 commit 3f1bc7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/lsp-progress/defaults.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
local api = require("lsp-progress.api")

--- @alias lsp_progress.Configs table<any, any>
--- @type lsp_progress.Configs
local Defaults = {
Expand Down Expand Up @@ -134,7 +136,7 @@ local Defaults = {
if #client_messages > 0 then
return sign .. " " .. table.concat(client_messages, " ")
end
if #vim.lsp.get_active_clients() > 0 then
if #api.lsp_clients() > 0 then
return sign
end
return ""
Expand Down

0 comments on commit 3f1bc7a

Please sign in to comment.