iceberg.vim
iceberg.vim copied to clipboard
Tree-Sitter function color
Environment:
- OS: Linux
- Vim (
:version
): Neovim 0.6 - Terminal: Bash
If you have a trouble with coloration and are using Vim/Neovim with terminal:
- [ x] Does your Vim support full colors? (
:set termguicolors
) - [ x] Does your terminal support full colors? (e.g. Terminal.app doesn't support it)
With Tree-Sitter the class, function etc. declarations are not in orange.
Please share a example code. This is important to investigate the issue.
Without tree-sitter for python it looks like this:
With tree-sitter for python:
Faced the same issue with the tree-sitter.
Hi, I'm interested in and took a quick look on this issue (with the help of :Inspect
command).
It seems class definitions (SomeClass
in the example) is in the @type
group in treesitter. So, highlighting it into orange is possible, but makes all type keywords highlighted in orange, which puts a bit too much orange in the screen.
To avoid that problem, I am currently using a bit opinionated fork of mine that highlights types/classes in green and function/method definitions in orange.
If you are still having trouble, this may help you. Or if you came up with other solutions, please let me know!