Announcing ‘mini.statuscolumn’
Hello, Neovim users!
To close out the summer, there is a new ‘mini.nvim’ module for you: ‘mini.statuscolumn’. It is a fast implementation of a ‘statuscolumn’ (the left area with line numbers, signs, and fold indicators) that also improves its default look.
The module, for once, ended up being indeed rather “mini”. Although its design and implementation were not easy. It required balancing:
Performance: doing as little as possible in ‘statuscolumn’ callback, precomputing relevant things at right time, etc.
Complexity: how much flexibility to provide and which edge cases are useful enough to cover.
Defaults: not too flashy, but should be an improvement over default (which at least doesn’t specially indicate wrapped and virtual lines).
I think the result looks rather nice and adds a positive value for the everyday Neovim usage.
Features of ‘mini.statuscolumn’:
Fast
'statuscolumn'with improved defaults.Fully customizable content via functions that take precomputed useful data.
MiniStatuscolumn.gen_content.main()for simplified customization.Automatic dimming inside inactive windows content.
Notes:
- Works best on Neovim>=0.11 (due to several improvements in
'statuscolumn'implementation in that version).
Please, check it out and tell me what you think! Leave a comment in a dedicated beta-testing issue.
Thank you for your time reading this!