From 40855eaf036f7834442c3cf8e5193f91b79e73c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Solano?= Date: Fri, 24 Apr 2026 08:51:02 +0200 Subject: [PATCH] fix(progress): treat vim.NIL as nil in LSP progress fields --- lua/fidget/progress/lsp.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/fidget/progress/lsp.lua b/lua/fidget/progress/lsp.lua index 8f3312e..f1f3378 100644 --- a/lua/fidget/progress/lsp.lua +++ b/lua/fidget/progress/lsp.lua @@ -115,9 +115,9 @@ function M.poll_for_messages() if type(value) == 'table' and value.kind then local message = { token = progress.token, - title = value.title, - message = value.message, - percentage = value.done and nil or value.percentage, + title = value.title ~= vim.NIL and value.title or nil, + message = value.message ~= vim.NIL and value.message or nil, + percentage = value.done and nil or (value.percentage ~= vim.NIL and value.percentage or nil), done = value.kind == "end", cancellable = value.cancellable or false, lsp_client = client,