fix(statusline): update separate and restyle
This commit is contained in:
parent
e1ae8a414f
commit
4dc2c9858b
1 changed files with 8 additions and 6 deletions
|
@ -69,16 +69,16 @@ function M.output()
|
||||||
vim.api.nvim_set_hl(ns, name, settings)
|
vim.api.nvim_set_hl(ns, name, settings)
|
||||||
end
|
end
|
||||||
|
|
||||||
local separator = " ☰ "
|
local separator = "▒▒"
|
||||||
local mode = " %{%v:lua.format_mode(v:lua.vim.fn.mode())%} "
|
local mode = " %{%v:lua.format_mode(v:lua.vim.fn.mode())%} "
|
||||||
local open_file = "%r%t %m"
|
local open_file = " %r%t %m"
|
||||||
local buf_nr = "[%n] "
|
local buf_nr = "[%n] "
|
||||||
local right_align = "%="
|
local right_align = "%="
|
||||||
local file_format = "%{&ff}"
|
local file_format = " %{&ff}"
|
||||||
local file_type = "%y "
|
local file_type = "%y "
|
||||||
local encoding = "%{''.(&fenc!=''?&fenc:&enc).''} "
|
local encoding = "%{''.(&fenc!=''?&fenc:&enc).''} "
|
||||||
local line_no = "line: %03l/%03L "
|
local line_no = " line: %03l/%03L "
|
||||||
local percentage = "[%3p%%]"
|
local percentage = "[%3p%%] "
|
||||||
|
|
||||||
return table.concat{
|
return table.concat{
|
||||||
setHighlight(statuslineMode),
|
setHighlight(statuslineMode),
|
||||||
|
@ -87,6 +87,7 @@ function M.output()
|
||||||
separator,
|
separator,
|
||||||
open_file,
|
open_file,
|
||||||
buf_nr,
|
buf_nr,
|
||||||
|
separator,
|
||||||
setHighlight(statuslineTransparent),
|
setHighlight(statuslineTransparent),
|
||||||
right_align,
|
right_align,
|
||||||
setHighlight(statuslineBlueText),
|
setHighlight(statuslineBlueText),
|
||||||
|
@ -97,7 +98,8 @@ function M.output()
|
||||||
setHighlight(statuslineMagentaText),
|
setHighlight(statuslineMagentaText),
|
||||||
separator,
|
separator,
|
||||||
line_no,
|
line_no,
|
||||||
percentage
|
percentage,
|
||||||
|
separator,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue