blob: facc04c45c438c8b5e56e42a4bc0c7a2c0874460 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
-- Lua statusline imported into the main init
-- Line table Left-to-Right
local stl = {
' [%n] ', -- Buffer
' %f ', -- Filename with Path
' %m%r%w ', -- Modified flag
' (%{&filetype})', -- VIM Filetype
" %{''.(&fenc!=''?&fenc:&enc).''}", -- File Encoding
' %{(&bomb?\",BOM\":\"\")}', -- "UCS-BOM" /bomb/ detection
' %=', -- Separator
' row:%l/%L (%03p%%)', -- Formatted row, then percentage of file
' col:%03c ', -- Formatted column
}
-- Generate the statusline
vim.o.statusline = table.concat(stl)
|