diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index 92fa3a7..eea256a 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -2,6 +2,8 @@ -- │ Lualine │ -- ╰─────────────────────────────────────────────────────────╯ +local rootilities = require("utils.rootilities") + return { "nvim-lualine/lualine.nvim", event = "VeryLazy", @@ -105,6 +107,9 @@ return { vim.cmd(":WakaTimeToday") end end, + cond = function() + return rootilities.is_window_wide_enough(100) + end, }, }, lualine_y = { @@ -112,6 +117,9 @@ return { function() return require("utils.music_stats").get_icon_with_text() end, + cond = function() + return rootilities.is_window_wide_enough(100) + end, }, { @@ -119,22 +127,37 @@ return { return vim.fn.wordcount().words end, icon = " ", + cond = function() + return rootilities.is_window_wide_enough(80) + end, }, { "progress", separator = " ", padding = { left = 1, right = 0 }, + cond = function() + return rootilities.is_window_wide_enough(60) + end, }, { "location", padding = { left = 0, right = 1 }, + cond = function() + return rootilities.is_window_wide_enough(40) + end, }, { "selection_count", + cond = function() + return rootilities.is_window_wide_enough(120) + end, }, { "filesize", + cond = function() + return rootilities.is_window_wide_enough(100) + end, }, }, lualine_z = {