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) 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