| Crates.io | kakeidoscope |
| lib.rs | kakeidoscope |
| version | 1.0.0 |
| created_at | 2025-03-23 03:13:19.439294+00 |
| updated_at | 2026-01-03 19:41:57.7249+00 |
| description | A rainbow bracket highlighter for Kakoune. |
| homepage | https://git.sr.ht/~orchid/kakeidoscope |
| repository | https://git.sr.ht/~orchid/kakeidoscope |
| max_upload_size | |
| id | 1602312 |
| size | 24,514 |
A plugin for Kakoune which implements simple rainbow bracket highlighting.
It does not parse language features, and will thus highlight comments. See
See /CHANGELOG.md for history.
cargo install kakeidoscope
To load the necessary options and wrapper functions for kakeidoscope,
place the below snippet into your configuration, which loads
/rc/kakeidoscope.kak. Note that the init subcommand requires the default
cargo feature, init.
evaluate-commands %sh{ kakeidoscope init }
The below snippet will additonally automatically highlight all windows.
hook global WinCreate '.*' kakeidoscope-enable-window
The below options are passed to kakeidoscope via the Kakoune command
kakeidoscope-highlight.
declare-option int kakeidoscope_faces red yellow green cyan blue magenta
declare-option regex kakeidoscope_regex '[()[\]{}]'
For pre-v1.0.0 configurations, change the kakeidoscope_pairs option to
a regex option, kakeidoscope_regex, as above. kakeidoscope_regex should
contain only characters in { ()[]{}<> }, as others will be ignored.
See kakeidoscope help highlight for detail on the binary's command-line
options.
{(])}, the {} and () pair would be highlighted (with {} as
top-level and () as once-nested), and the ] would be ignored, as it does
not close a pair.{([)}, the {, (, and [ would be highlighted (with { as
top-level, ( as once-nested, and [ as twice-nested), and the ) and }
would be ignored, as neither closes a pair.Note that this plugin's behavior is not identical to Kakoune's show-matching
highlighter, as we use stricter rules to find a pair.