From 3f1bc7afced59a68fbacc92d84a0d88590a58a10 Mon Sep 17 00:00:00 2001 From: Ilia Choly Date: Fri, 17 May 2024 10:56:15 -0400 Subject: [PATCH] fix(defaults): use api.get_clients() (#142) --- lua/lsp-progress/defaults.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ""