Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few LSP highlights are missing #17

Open
teleivo opened this issue Nov 17, 2023 · 7 comments
Open

A few LSP highlights are missing #17

teleivo opened this issue Nov 17, 2023 · 7 comments

Comments

@teleivo
Copy link

teleivo commented Nov 17, 2023

Hi 馃槃 I absolutely love this theme 馃槏 thank you so much!

I think there are some highlights for LSPs that are missing. Might be as neovim is still changing 馃槄

https://neovim.io/doc/user/lsp.html#lsp-highlight

LspReferenceText used for highlighting "text" references
LspReferenceRead used for highlighting "read" references
LspReferenceWrite used for highlighting "write" references
LspInlayHint used for highlighting inlay hints
LspCodeLens Used to color the virtual text of the codelens
LspCodeLensSeparator Used to color the separator between two or more code lenses
LspSignatureActiveParameter Used to highlight the active parameter in the signature help

I could help out with a PR but I don't know which colors would make sense 馃槄

I checked what other themes do for

  • LspReferenceText
  • LspReferenceRead
  • LspReferenceWrite

For example, https://github.com/folke/tokyonight.nvim/blob/f247ee700b569ed43f39320413a13ba9b0aef0db/lua/tokyonight/theme.lua#L177-L179 uses the same config. I linked the highlight groups to Visual.

@wadackel
Copy link
Owner

Sorry I have not been able to reply!
I am busy right now and will check back later and reply 馃槶

@teleivo
Copy link
Author

teleivo commented Dec 3, 2023

Sorry I have not been able to reply! I am busy right now and will check back later and reply 馃槶

No worries and no rush 馃槃

@wadackel
Copy link
Owner

wadackel commented Dec 17, 2023

@teleivo

Thank you for waiting!
I tried adjusting the style as shown in the following image, how do you feel about that? I tried applying a style similar to matchparen :)

example

I don't usually use document highlight, so I would appreciate any feedback 馃惗
(This style has not been pushed yet)

@teleivo
Copy link
Author

teleivo commented Dec 19, 2023

Thanks a lot, @wadackel that makes sense to me 馃槃 It draws less attention than Visual and since it's distinct from Visual I can tell the two apart 馃榿

@teleivo
Copy link
Author

teleivo commented Dec 20, 2023

I found another LSP highlight group https://neovim.io/doc/user/lsp.html#hl-LspSignatureActiveParameter which might be great to add 馃槒.

It highlights the active parameter when using vim.lsp.buf.signature_help().

When linking it to Visual it looks like

image

wadackel added a commit that referenced this issue Dec 21, 2023
@wadackel
Copy link
Owner

@teleivo

Thank you for your further suggestions 馃悤

Signature Help

There are cases where styles are already applied depending on the library you use, so you don't want to break them. It is designed to tell the user the current edited part by using at least Italic style :)

I just pushed four style changes to the main branch 馃惗

@teleivo
Copy link
Author

teleivo commented Dec 22, 2023

Thanks a lot! Looking great 馃槃

The italic style is not as visible to me as for example Visual. I don't quite understand

There are cases where styles are already applied depending on the library you use, so you don't want to break them. It is designed to tell the user the current edited part by using at least Italic style :)

do you have an example of how linking LspSignatureActiveParameter to for example Visual could break a library 馃槄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants