rework status line
This commit is contained in:
parent
0c66846e4e
commit
b099ba7efd
@ -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
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
require('lualine').setup({
|
||||
sections = { lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } } },
|
||||
options = { theme = 'gruvbox' },
|
||||
sections = { lualine_c = { 'getcwd' , 'aerial' } },
|
||||
inactive_sections = { lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } } },
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user