rework status line
This commit is contained in:
parent
0c66846e4e
commit
b099ba7efd
@ -57,22 +57,16 @@ opt.foldmethod = 'expr'
|
|||||||
opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||||
|
|
||||||
local function status_line()
|
local function status_line()
|
||||||
local mode = "%-5{%v:lua.string.upper(v:lua.vim.fn.mode())%}"
|
|
||||||
local file_name = "%-.16t"
|
local file_name = "%-.16t"
|
||||||
local buf_nr = "[%n]"
|
|
||||||
local modified = " %-m"
|
local modified = " %-m"
|
||||||
local file_type = " %y"
|
|
||||||
local right_align = "%="
|
local right_align = "%="
|
||||||
local line_no = "%10([%l/%L%)]"
|
local line_no = "%10([%l/%L%)]"
|
||||||
local pct_thru_file = "%5p%%"
|
local pct_thru_file = "%5p%%"
|
||||||
|
|
||||||
return string.format(
|
return string.format(
|
||||||
"%s%s%s%s%s%s%s%s",
|
"%s%s%s%s%s",
|
||||||
mode,
|
|
||||||
file_name,
|
file_name,
|
||||||
buf_nr,
|
|
||||||
modified,
|
modified,
|
||||||
file_type,
|
|
||||||
right_align,
|
right_align,
|
||||||
line_no,
|
line_no,
|
||||||
pct_thru_file
|
pct_thru_file
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
require('lualine').setup({
|
require('lualine').setup({
|
||||||
sections = { lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } } },
|
|
||||||
options = { theme = 'gruvbox' },
|
options = { theme = 'gruvbox' },
|
||||||
|
sections = { lualine_c = { 'getcwd' , 'aerial' } },
|
||||||
inactive_sections = { lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } } },
|
inactive_sections = { lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } } },
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user