AckslD / nvim-neoclip.lua

Clipboard manager neovim plugin with telescope integration
994 stars 20 forks source link

[Feature Request] Add option to remove indentation from shown yanks #117

Open WildRage1369 opened 6 months ago

WildRage1369 commented 6 months ago

Hello there,

I tend to work in environments that have a lot of nested code and indents, so an option to normalize all of the yank entries to the left, which is to say don't display indentation, would be very useful as how it is right now there is a lot of empty space that is made by indentations in yanks.

Thank you in advance

AckslD commented 6 months ago

Hi @WildRage1369! Would you like for the indentation to only not be shown in the (telescope) picker or also removed when you select the entry?

WildRage1369 commented 6 months ago

Hi @WildRage1369! Would you like for the indentation to only not be shown in the (telescope) picker or also removed when you select the entry?

Only for the picker ideally!

AckslD commented 6 months ago

I'm thinking we can expose a callback function which can format the entries and then the user can do whatever they want, and in particular remove indentation. We could potentially have some useful callbacks already pre-defined to avoid everyone having to write the same over and over. How does that sound? Is this something you would like to contribute to?