Mini.statusline customisation #1491
-
Aside from unreasonably increasing the value of trunc_width , is there a way to get the short output for sections in the status line? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
An answer to the exact question is a "No". However, most of the sections are more or less thin wrappers around built-in 'statuslin' syntax. So...
Instead of local fileinfo = vim.bo.filetype
if fileinfo ~= '' then
fileinfo = string.format('%s %s[%s]', fileinfo, vim.bo.fileencoding or vim.bo.encoding, vim.bo.fileformat)
end See
Instead of using |
Beta Was this translation helpful? Give feedback.
-
Sorry to revive an old question, but when you say "Instead of ..., use something like: ...", how does one put that in say a mini.statusline.lua or lazy.lua or init.lua? From
would it be best to change what |
Beta Was this translation helpful? Give feedback.
An answer to the exact question is a "No". However, most of the sections are more or less thin wrappers around built-in 'statuslin' syntax. So...
Instead of
section_fileinfo()
, use something like this:See
section_fileinfo()
code for more de…