-
Notifications
You must be signed in to change notification settings - Fork 57
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
Too much italic for treesitter #41
Comments
The text of blue color should not be italicized. I did some debug, and found that it's a bug of tree-sitter. This line: Line 365 in f2c8e3d
Will link Line 236 in f2c8e3d
The output of
As you can see, But it is italicized here. IMO, it's a bug of nvim-treesitter, report this to their repo. |
I'm facing the same kind of issues whenever I use Edge. And yes, this behaviour comes from Treesitter and it doesn't seem like Neovim offers a way to counteract it. I just opened nvim-treesitter/nvim-treesitter#3396. The problem with Treesitter is that, since highlight attributes are inherited, anything with Unfortunately, even forcing the child's attributes to highlight! Blue cterm=NONE gui=NONE " no effect This seems to be a recurring issue in any color scheme that sets non- |
Here is a workaround that solves most (all?) issues related to inherited attributes: hi Fg gui=nocombine
hi Grey gui=nocombine
hi Red gui=nocombine
hi Yellow gui=nocombine
hi Green gui=nocombine
hi Cyan gui=nocombine
hi Blue gui=nocombine
hi Purple gui=nocombine Maybe we could make |
Operating system/version
WSL2
Terminal emulator/version
wezterm
$TERM environment variable
xterm-256color
Tmux version
No response
Feature matrix
Minimal vimrc that can reproduce this bug.
Steps to reproduce this bug using minimal vimrc
Use the above config
Expected behavior
Like gruvbox-material, some texts are italic
Actual behavior
Almost everything is italic
The text was updated successfully, but these errors were encountered: