fix(statusline): update separate and restyle

This commit is contained in:
Dan Anglin 2022-03-26 17:47:10 +00:00
parent e1ae8a414f
commit 4dc2c9858b
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -69,16 +69,16 @@ function M.output()
vim.api.nvim_set_hl(ns, name, settings)
end
local separator = ""
local separator = "▒▒"
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 right_align = "%="
local file_format = "%{&ff}"
local file_format = " %{&ff}"
local file_type = "%y "
local encoding = "%{''.(&fenc!=''?&fenc:&enc).''} "
local line_no = "line: %03l/%03L "
local percentage = "[%3p%%]"
local line_no = " line: %03l/%03L "
local percentage = "[%3p%%] "
return table.concat{
setHighlight(statuslineMode),
@ -87,6 +87,7 @@ function M.output()
separator,
open_file,
buf_nr,
separator,
setHighlight(statuslineTransparent),
right_align,
setHighlight(statuslineBlueText),
@ -97,7 +98,8 @@ function M.output()
setHighlight(statuslineMagentaText),
separator,
line_no,
percentage
percentage,
separator,
}
end