Parcourir la source

fix: use columns instead of winwidth

Christian Chiarulli il y a 2 ans
Parent
commit
bea690fc16
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lua/lvim/core/lualine/conditions.lua

+ 1 - 1
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"