nvim-colorizer.lua icon indicating copy to clipboard operation
nvim-colorizer.lua copied to clipboard

feat: Add inline virtualtext mode

Open mehalter opened this issue 2 years ago • 4 comments

This adds a new inline mode to use the new inline virtual text features of Neovim v0.10 (currently nightly)

2023-05-23_11:45:53_screenshot

mehalter avatar May 23 '23 15:05 mehalter

Thanks for your contribution.. I'm using your fork already! Is it possible to also add an option to change the location of the virtualtext (start/end of the color)?

olrtg avatar Jul 05 '23 18:07 olrtg

image

Also I'm wondering why your virtualtext is separated by one space and mine not 🤔

olrtg avatar Jul 05 '23 18:07 olrtg

@olrtg Changing start and end would be a great option! I would want to hear back from the maintainers to see what direction they want to go with these types of options. Sadly I haven't heard anything quite yet, so they might not be interested in this type of feature?

Also for your second comment, I personally changed the virtualtext option that already exists to add a space to make it that way. Basically this PR just adds the ability to enable inlay hints but it piggy backs on the already existing option for setting what the actual virtual text is which in the case of not having inlay hints it shouldn't have a space.

mehalter avatar Aug 08 '23 04:08 mehalter

@mehalter Thank you so much for the answer! I didn't realized that there was an option for changing that! Now it's working like yours 🤘🏽 And well, we'll have to patiently wait I guess.

olrtg avatar Aug 08 '23 23:08 olrtg

I suppose this was superseded by #85 I'll go ahead and close this.

mehalter avatar Jul 24 '24 12:07 mehalter