diff options
| author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2024-01-25 11:33:24 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-25 20:09:24 +0100 |
| commit | 1e0996b57230ad65c28659e179a7da7bfa01e5be (patch) | |
| tree | 6e66c9ce116191a8a9941f21f90019b66e8e88b4 /runtime | |
| parent | d4bd6b1eaab3729d70304d0e163df4eb141099b3 (diff) | |
| download | rneovim-1e0996b57230ad65c28659e179a7da7bfa01e5be.tar.gz rneovim-1e0996b57230ad65c28659e179a7da7bfa01e5be.tar.bz2 rneovim-1e0996b57230ad65c28659e179a7da7bfa01e5be.zip | |
feat(colorscheme): update treesitter groups
Problem: Currently default color scheme defines most of treesitter
highlight groups. This might be an issue for users defining their own
color scheme as it breaks the "fallback property" for some of groups.
Solution: Define less default treesitter groups; just enough for default
color scheme to be useful. That is:
- All first level groups (`@character`, `@string`, etc.).
- All `@xxx.builtin` groups as a most common subgroup.
- Some special cases (links/URLs, `@diff.xxx`, etc.).
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/doc/treesitter.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index c2cbbf3f76..956b7d6ae5 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -422,8 +422,9 @@ instance, to highlight comments differently per language: >vim hi @comment.lua guifg=DarkBlue hi link @comment.documentation.java String < -The following captures are linked by default to standard |group-name|s (use -|:Inspect| on a group to see the current link): +The following is a list of standard captures used in queries for Nvim, +highlighted according to the current colorscheme (use |:Inspect| on one to see +the exact definition): @variable various variable names @variable.builtin built-in variable names (e.g. `this` / `self`) |