diff --git a/lua/lsp-progress/defaults.lua b/lua/lsp-progress/defaults.lua index c106451..4f77702 100644 --- a/lua/lsp-progress/defaults.lua +++ b/lua/lsp-progress/defaults.lua @@ -1,3 +1,5 @@ +local api = require("lsp-progress.api") + --- @alias lsp_progress.Configs table --- @type lsp_progress.Configs local Defaults = { @@ -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 ""