diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-02 18:51:14 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-02 18:53:06 +0100 |
commit | 5d95ae4d2c4a47589412fafd1572eaaaff15622d (patch) | |
tree | 6e95a463c0830602933aee3dee61370150c176b0 /modules/home.legacy/conf/nvim/plgs/lsp-progress-nvim/lua | |
parent | feat(flake/treefmt.nix): Specify lua formatter settings (diff) | |
download | nixos-config-5d95ae4d2c4a47589412fafd1572eaaaff15622d.tar.gz nixos-config-5d95ae4d2c4a47589412fafd1572eaaaff15622d.zip |
style(modules/legacy/conf/nvim): Format
Diffstat (limited to '')
-rw-r--r-- | modules/home.legacy/conf/nvim/plgs/lsp-progress-nvim/lua/lsp-progress-nvim.lua | 8 |
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, |