diff options
author | Christian Chiarulli <[email protected]> | 2022-09-21 21:21:00 -0400 |
---|---|---|
committer | Christian Chiarulli <[email protected]> | 2022-09-21 21:21:00 -0400 |
commit | bea690fc16e3e23e8644c61b1d2e140fb8851d1b (patch) | |
tree | 611eeee27ce44153083e65f40754fa7f1ddfc841 | |
parent | 3803fff75846089f5c4aac70bbed7b58c77561e3 (diff) |
fix: use columns instead of winwidth
-rw-r--r-- | lua/lvim/core/lualine/conditions.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lvim/core/lualine/conditions.lua b/lua/lvim/core/lualine/conditions.lua index 8a89c0bd..42d52a83 100644 --- a/lua/lvim/core/lualine/conditions.lua +++ b/lua/lvim/core/lualine/conditions.lua @@ -5,7 +5,7 @@ local conditions = { return vim.fn.empty(vim.fn.expand "%:t") ~= 1 end, hide_in_width = function() - return vim.fn.winwidth(0) > window_width_limit + return vim.o.columns > window_width_limit end, -- check_git_workspace = function() -- local filepath = vim.fn.expand "%:p:h" |