From 5d95ae4d2c4a47589412fafd1572eaaaff15622d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 2 Nov 2024 18:51:14 +0100 Subject: style(modules/legacy/conf/nvim): Format --- .../conf/nvim/plgs/lsp-progress-nvim/lua/lsp-progress-nvim.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'modules/home.legacy/conf/nvim/plgs/lsp-progress-nvim') diff --git a/modules/home.legacy/conf/nvim/plgs/lsp-progress-nvim/lua/lsp-progress-nvim.lua b/modules/home.legacy/conf/nvim/plgs/lsp-progress-nvim/lua/lsp-progress-nvim.lua index efb15720..5a2cff26 100644 --- a/modules/home.legacy/conf/nvim/plgs/lsp-progress-nvim/lua/lsp-progress-nvim.lua +++ b/modules/home.legacy/conf/nvim/plgs/lsp-progress-nvim/lua/lsp-progress-nvim.lua @@ -82,12 +82,8 @@ require("lsp-progress").setup({ table.insert(builder, message) has_message = true end - if percentage and (has_title or has_message) then - table.insert(builder, string.format("(%.0f%%%%)", percentage)) - end - if done and (has_title or has_message) then - table.insert(builder, "- done") - end + if percentage and (has_title or has_message) then table.insert(builder, string.format("(%.0f%%%%)", percentage)) end + if done and (has_title or has_message) then table.insert(builder, "- done") end return table.concat(builder, " ") end, -- cgit 1.4.1