diff options
| author | triethyl <triethylammonium@pm.me> | 2025-09-03 09:07:24 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-09-03 09:07:24 -0400 |
| commit | 158a67f6eda37c72e9510b4b73c66d3fc37751a3 (patch) | |
| tree | 5c94d0efa6b01c8dbaacd06673b89586e119e4e5 /pkgs | |
| parent | ca30ba28b038c7ad283fc17ca4e9cc91eda2e911 (diff) | |
neovim: increased winbar filename collapse threshold
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/winbar.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/custom-neovim/config/lua/winbar.lua b/pkgs/custom-neovim/config/lua/winbar.lua index 6202065..1e68c9d 100644 --- a/pkgs/custom-neovim/config/lua/winbar.lua +++ b/pkgs/custom-neovim/config/lua/winbar.lua @@ -31,10 +31,10 @@ components.filename = function (args) local filename = vim.fn.expand("%t") -- Shorten if too large - if utils.component_takes_percentage(#filename, 40) then + if utils.component_takes_percentage(#filename, 70) then filename = vim.fn.pathshorten(filename) end - if utils.component_takes_percentage(#filename, 80) then + if utils.component_takes_percentage(#filename, 85) then return "" end |
