about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/nvim/plgs/lsp-progress-nvim/lua
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-02 18:51:14 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-02 18:53:06 +0100
commit5d95ae4d2c4a47589412fafd1572eaaaff15622d (patch)
tree6e95a463c0830602933aee3dee61370150c176b0 /modules/home.legacy/conf/nvim/plgs/lsp-progress-nvim/lua
parentfeat(flake/treefmt.nix): Specify lua formatter settings (diff)
downloadnixos-config-5d95ae4d2c4a47589412fafd1572eaaaff15622d.tar.gz
nixos-config-5d95ae4d2c4a47589412fafd1572eaaaff15622d.zip
style(modules/legacy/conf/nvim): Format
Diffstat (limited to 'modules/home.legacy/conf/nvim/plgs/lsp-progress-nvim/lua')
-rw-r--r--modules/home.legacy/conf/nvim/plgs/lsp-progress-nvim/lua/lsp-progress-nvim.lua8
1 files changed, 2 insertions, 6 deletions
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,