Skip to content

Commit 3f1bc7a

Browse files
authored
fix(defaults): use api.get_clients() (#142)
1 parent a744d92 commit 3f1bc7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/lsp-progress/defaults.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
local api = require("lsp-progress.api")
2+
13
--- @alias lsp_progress.Configs table<any, any>
24
--- @type lsp_progress.Configs
35
local Defaults = {
@@ -134,7 +136,7 @@ local Defaults = {
134136
if #client_messages > 0 then
135137
return sign .. " " .. table.concat(client_messages, " ")
136138
end
137-
if #vim.lsp.get_active_clients() > 0 then
139+
if #api.lsp_clients() > 0 then
138140
return sign
139141
end
140142
return ""

0 commit comments

Comments
 (0)