Mofiqul / vscode.nvim

Neovim/Vim color scheme inspired by Dark+ and Light+ theme in Visual Studio Code
MIT License
695 stars 111 forks source link

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

Open starptr opened 1 year ago

starptr commented 1 year ago

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 commented 1 year ago

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

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

zandivx commented 5 months ago

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" })