rework status line

This commit is contained in:
2022-06-26 14:38:26 +02:00
parent 0c66846e4e
commit b099ba7efd
2 changed files with 3 additions and 8 deletions

View File

@@ -57,22 +57,16 @@ opt.foldmethod = 'expr'
opt.foldexpr = 'nvim_treesitter#foldexpr()'
local function status_line()
local mode = "%-5{%v:lua.string.upper(v:lua.vim.fn.mode())%}"
local file_name = "%-.16t"
local buf_nr = "[%n]"
local modified = " %-m"
local file_type = " %y"
local right_align = "%="
local line_no = "%10([%l/%L%)]"
local pct_thru_file = "%5p%%"
return string.format(
"%s%s%s%s%s%s%s%s",
mode,
"%s%s%s%s%s",
file_name,
buf_nr,
modified,
file_type,
right_align,
line_no,
pct_thru_file