echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.45k stars 171 forks source link

mini.files content.postfix #984

Closed mrshmllow closed 1 week ago

mrshmllow commented 1 week ago

Contributing guidelines

Module(s)

mini.files

Description

I would like to be able to append text in the same manner that you can prefix text with a content.prefix function.

For an example of why this would be useful, this is currently the best git-view that I could achieve using a prefix:

image

It would be pretty cool if we could add some extra info without breaking the columns :P

echasnovski commented 1 week ago

Thanks for the suggestion!

I don't think this will be a worthwhile addition. The only use case I can think about is indeed showing some custom indicator, but for that I'd recommend using extmarks with virt_text_pos not equal to 'overlay' (so either 'eol', 'right_align', or 'inline').

Closing as not planned.