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: 1 comment
-
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.
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…