summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2025-08-26 15:09:16 +0300
committerKyren223 <contact@kyren.codes>2025-08-26 15:09:16 +0300
commite4c79011d8931f879d48ce085bd311a2a6185968 (patch)
tree1fa06e6af9af5d312f6ad95fe978824e2608eefe /.config/nvim/lua/plugins
parentdfde43bc8d36d076b437cbc3dbfc639881a2a963 (diff)
Configure lualine
Diffstat (limited to '.config/nvim/lua/plugins')
-rw-r--r--.config/nvim/lua/plugins/lualine.lua10
1 files changed, 8 insertions, 2 deletions
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' },