Skip to content

Commit

Permalink
Add rainbow tree-sitter highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored and omentic committed May 1, 2024
1 parent e748557 commit 5e83738
Show file tree
Hide file tree
Showing 45 changed files with 1,517 additions and 297 deletions.
1 change: 1 addition & 0 deletions book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
- [Adding textobject queries](./guides/textobject.md)
- [Adding indent queries](./guides/indent.md)
- [Adding injection queries](./guides/injection.md)
- [Adding rainbow bracket queries](./guides/rainbow_bracket_queries.md)
1 change: 1 addition & 0 deletions book/src/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Its settings will be merged with the configuration directory `config.toml` and t
| `indent-heuristic` | How the indentation for a newly inserted line is computed: `simple` just copies the indentation level from the previous line, `tree-sitter` computes the indentation based on the syntax tree and `hybrid` combines both approaches. If the chosen heuristic is not available, a different one will be used as a fallback (the fallback order being `hybrid` -> `tree-sitter` -> `simple`). | `hybrid`
| `jump-label-alphabet` | The characters that are used to generate two character jump labels. Characters at the start of the alphabet are used first. | `"abcdefghijklmnopqrstuvwxyz"`
| `initial-mode` | The initial mode for newly opened editors. | `"normal"` |
| `rainbow-brackets` | Whether to render rainbow colors for matching brackets. Requires tree-sitter `rainbows.scm` queries for the language. | `false` |

### `[editor.statusline]` Section

Expand Down
Loading

0 comments on commit 5e83738

Please sign in to comment.