From e4c79011d8931f879d48ce085bd311a2a6185968 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 26 Aug 2025 15:09:16 +0300 Subject: Configure lualine --- .config/nvim/lua/plugins/lualine.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.config') diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua index fca5457..299dbe8 100644 --- a/.config/nvim/lua/plugins/lualine.lua +++ b/.config/nvim/lua/plugins/lualine.lua @@ -55,7 +55,9 @@ return { lualine.setup({ options = { globalstatus = true, - theme = 'auto', + theme = function() + return vim.g.theme + end, disabled_filetypes = { statusline = { 'dashboard', 'alpha', 'ministarter', 'snacks_dashboard' } }, }, sections = { @@ -63,7 +65,10 @@ return { lualine_b = { { 'branch', icon = '' } }, lualine_c = { { 'filetype', icon_only = true, separator = '', padding = { left = 1, right = 0 } }, - { 'filename', separator = '', padding = { left = 0, right = 0 } }, + -- TODO(kyren): experiment with path = 1 or path = 4? + -- I feel like it's too long right now, so I prefer 0, but maybe shove the + -- path somewhere else? + { 'filename', separator = '', padding = { left = 0, right = 0 }, path = 0 }, { 'diagnostics', symbols = { @@ -86,6 +91,7 @@ return { 'searchcount', 'encoding', 'fileformat', + 'filesize', 'filetype', }, lualine_y = { 'progress' }, -- cgit v1.3.1