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

Does not play well with semantic highlighting (nvim 0.9) #137

Open
starptr opened this issue Apr 28, 2023 · 2 comments
Open

Does not play well with semantic highlighting (nvim 0.9) #137

starptr opened this issue Apr 28, 2023 · 2 comments

Comments

@starptr
Copy link

starptr commented Apr 28, 2023

nvim 0.9 adds support for semantic highlighting, and (if I understand correctly) the default behavior of some semantic tags break this colorscheme. For example, I have an unused variable here:
CleanShot 2023-04-28 at 16 52 11@2x
but it shouldn't have the same look as comments, yet the semantic extmark makes it have the same look as comments:
CleanShot 2023-04-28 at 16 53 05@2x
so now it looks like I have comments within my code :(.

@AkhilRobert
Copy link

you can fix it by removing the highlight group for the extmark

vim.api.nvim_set_hl(0, 'DiagnosticUnnecessary', {})

@zandivx
Copy link

zandivx commented Apr 12, 2024

you can fix it by removing the highlight group for the extmark

vim.api.nvim_set_hl(0, 'DiagnosticUnnecessary', {})

Or map it to the color VS Code uses:

vim.api.nvim_set_hl(0, "DiagnosticUnnecessary", { fg = "#7191A8" })

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

3 participants