From 158a67f6eda37c72e9510b4b73c66d3fc37751a3 Mon Sep 17 00:00:00 2001 From: triethyl Date: Wed, 3 Sep 2025 09:07:24 -0400 Subject: neovim: increased winbar filename collapse threshold --- pkgs/custom-neovim/config/lua/winbar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/custom-neovim') 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 -- cgit v1.2.3