echasnovski / mini.nvim

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

Syntax highlight the signature preview #1020

Open leo-unglaub opened 3 months ago

leo-unglaub commented 3 months ago

Contributing guidelines

Module(s)

mini-completion

Description

Hey, first of all, i love your plugins, they are clean, easy to setup and work really fast. I love that. Thanks so much for providing them.

I noticed a small thing that might be an improvement. Right now the signature preview is in one color, buy with larger signatures it would be helpful to have them rendered with syntax highlighting on. It would, at least for me, improve the readability.

image

What do you think? Is that worth the work or not? Thanks so much and greetings Leo

leo-unglaub commented 3 months ago

Here is a better screenshot for a method that has a huge signature: image

echasnovski commented 3 months ago

Thanks for suggestion and kind words!

This is interesting and might be doable. There are at least the following issues with it:

I'll think about it.

leo-unglaub commented 3 months ago

Those are some very well thought out concerns, you are right. My idea was as follows:

Greettings Leo