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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(nvim) add LSP semantic tokens #314

Merged
merged 1 commit into from
Oct 29, 2023
Merged

(nvim) add LSP semantic tokens #314

merged 1 commit into from
Oct 29, 2023

Conversation

stnley
Copy link
Contributor

@stnley stnley commented Oct 28, 2023

Neovim stabilized their highlight groups for LSP semantic tokens in #22022. This PR adds the highlight groups to this plugin and changes some defaults.

Changes:

Group Linked default This PR
@lsp.type.class DraculaPink DraculaCyan
@lsp.type.enum DraculaPink DraculaCyan
@lsp.type.interface DraculaPink DraculaCyan
@lsp.type.macro DraculaPink DraculaCyan
@lsp.type.namespace DraculaPink DraculaCyan
@lsp.type.parameter DraculaFg DraculaOrangeItalic
@lsp.type.property DraculaFg DraculaOrange
@lsp.type.struct DraculaPink DraculaCyan

resolves #290

Neovim stabilized their highlight groups for LSP semantic tokens in
[#22022](neovim/neovim#22022). This PR adds the
highlight groups to this plugin and changes some defaults.

Changes:
| Group               | Linked default | This PR             |
| ------------------- | ---------------| ------------------- |
| @lsp.type.class     | DraculaPink    | DraculaCyan         |
| @lsp.type.enum      | DraculaPink    | DraculaCyan         |
| @lsp.type.interface | DraculaPink    | DraculaCyan         |
| @lsp.type.macro     | DraculaPink    | DraculaCyan         |
| @lsp.type.namespace | DraculaPink    | DraculaCyan         |
| @lsp.type.parameter | DraculaFg      | DraculaOrangeItalic |
| @lsp.type.property  | DraculaFg      | DraculaOrange       |
| @lsp.type.struct    | DraculaPink    | DraculaCyan         |

resolves #290
@stnley
Copy link
Contributor Author

stnley commented Oct 28, 2023

With semantic tokens on left, without semantic tokens on right.
1698526930_grimshot

@benknoble
Copy link
Member

No objections here. I'll give @dsifford 24h or so and take silence as "merge and deal with any consequences later" :)

When NeoVim goes 1.0, I'll recommend we drop all backwards compatibility highlights for pre-1.0 NeoVim.

Copy link
Member

@dsifford dsifford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! LGTM!

@dsifford dsifford merged commit 6495b4f into dracula:master Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: lsp semantic highlight
3 participants