From c453dcbf841aacffeadd9f5cd3c8c28274eda900 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sat, 28 Dec 2024 19:02:14 +0200 Subject: [PATCH] chore(nvim): statusline tweaks --- config/nvim/lua/plugins/mini.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/nvim/lua/plugins/mini.lua b/config/nvim/lua/plugins/mini.lua index 023ba25..cf71753 100644 --- a/config/nvim/lua/plugins/mini.lua +++ b/config/nvim/lua/plugins/mini.lua @@ -224,8 +224,8 @@ return { local mode, mode_hl = sl.section_mode { trunc_width = 120 } local git = sl.section_git { trunc_width = 75 } local diagnostics = sl.section_diagnostics { trunc_width = 75 } - local filename = sl.section_filename { trunc_width = 999 } - -- local fileinfo = statusline.section_fileinfo({ trunc_width = 120 }) + local filename = sl.section_filename { trunc_width = 9999 } + local fileinfo = sl.section_fileinfo { trunc_width = 120 } local location = sl.section_location { trunc_width = 75 } return sl.combine_groups { { hl = mode_hl, strings = { mode } }, @@ -233,7 +233,7 @@ return { '%<', -- Mark general truncate point { hl = 'statuslineFilename', strings = { filename } }, '%=', -- End left alignment - -- { hl = 'statuslineFileinfo', strings = { fileinfo } }, + { hl = 'statuslineFileinfo', strings = { fileinfo } }, { hl = mode_hl, strings = { location } }, } end,