Uh oh!
There was an error while loading. Please reload this page.
add support for Lsp codelens - #266
Conversation
code lenses are currently highlighted with the default color. This change adjusts it to make it less visually intrusive like comments. It is based on the VS code highlighting.
arcticicestudio
commented
Jul 22, 2021
Hi @jan-xyz 👋, thanks for your contribution 👍 |
arcticicestudio
left a comment
There was a problem hiding this comment.
Thanks again for your contribution. I've added a small improvement suggestion, otherwise this looks good to me 👍🏻
Uh oh!
There was an error while loading. Please reload this page.
jan-xyz
commented
Jul 28, 2021
Done! :) Thanks for the feedback! Would you appreciate another PR that moves other Comments to the custom group as well? |
jan-xyz
commented
Aug 8, 2021
hey @arcticicestudio, any news on getting this merged? 😊 |
There was a problem hiding this comment.
Thanks for your patience, I was on vacation for the last few weeks and I deliberately ignored the "digital life" during this time 😄
I reconsidered my previous suggestion and have come to the conclusion that the Comment the group is not right there due to the s:italicize_comments variable. Users who enabled this option would see code lenses being rendered with italic font style for an element that is more or less part of the UI and not the syntax. I guess for now we should use the dedicated definition from your initial PR commit and remove the s:italicize_comments variable. We can introduce a new custom highlighting group for elements like this later on. Sorry for this back and forth of changes 🙈
Would you appreciate another PR that moves other Comments to the custom group as well?
A PR that adds a new custom group for UI elements like code lenses or linter messages (like mentioned above) would be very welcome.
jan-xyz
commented
Sep 5, 2021
No need to apologize! I appreciate consistent behavior and as this is something new I totally understand that you haven't figured out and planned all of the quirks and bits yet! I'll see to it soon and I hope you had a great digital free vacation 🤗 |
jan-xyz
commented
Sep 5, 2021
@arcticicestudio I applied your requested changes |
arcticicestudio
left a comment
There was a problem hiding this comment.
Thanks, this will land in the next release with some other LSP and tree-sitter related improvements 🚀
Support for LSP code lenses Before LSP code lenses [1] where code lenses were highlighted with the default color which has been changed to make it less visually intrusive, like other UI related elements, i.e. messages of linters. [1]: https://neovim.io/doc/user/lsp.html#lsp-highlight-codelensGH-266 Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>


code lenses are currently highlighted with the default color. This change adjusts it to make it less visually intrusive like comments. docs: https://neovim.io/doc/user/lsp.html#hl-LspCodeLens
Before:

After:

It is based on the VS code highlighting:
