Skip to content

feat: Add link for readonly variables in semantic tokens#964

Open
Old-Farmer wants to merge 1 commit intocatppuccin:mainfrom
Old-Farmer:Old-Farmer-lsp-semantic-tokens
Open

feat: Add link for readonly variables in semantic tokens#964
Old-Farmer wants to merge 1 commit intocatppuccin:mainfrom
Old-Farmer:Old-Farmer-lsp-semantic-tokens

Conversation

@Old-Farmer
Copy link
Contributor

Catppuccin is wonderful and I use it everyday in neovim. But I've found that this colorscheme can't deal with constants well because it doesn't use lsp semantic hl capability. Constants/Readonly vars are always way better using lsp semantic hl than treesitter hl, so I make this pr. Feel free to make some tweeks and give me some feedbacks to improve this pr.

@comfysage
Copy link
Collaborator

But I've found that this colorscheme can't deal with constants well because it doesn't use lsp semantic hl capability. Constants/Readonly vars are always way better using lsp semantic hl than treesitter hl

which languages did you check this with?

could you add some screenshots. that helps make the differences clear.

@Old-Farmer
Copy link
Contributor Author

But I've found that this colorscheme can't deal with constants well because it doesn't use lsp semantic hl capability. Constants/Readonly vars are always way better using lsp semantic hl than treesitter hl

which languages did you check this with?

could you add some screenshots. that helps make the differences clear.

in cpp:

without this setting.

image

with:

image

It's now clear that line_cnt is readonly.

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

Successfully merging this pull request may close these issues.

2 participants