kak-tree-sitter 0.3.0

Server between Kakoune and tree-sitter
kak-tree-sitter-0.3.0 is not a library.

kak-tree-sitter

This is a binary server that interfaces tree-sitter with kakoune.

Features

  • Semantic highlighting.
  • Semantic selections (types, functions, declarations, etc.)
  • Efficient parsing via tree-sitter, with partial parsing, etc.
  • Shared between Kakoune sessions.

Install

Currently, the only installation channel, which is not ideal, is via cargo:

cargo install kak-tree-sitter

Optionally, you can install the CLI controller:

cargo install ktsctl

Usage

See the wiki.

Design

Alternatives

  • tree-sitter.kak: a similar project, with the same motivations. It’s currently the only viable alternative with both features (semantic highlighting / selections).

Credits

This program was heavily inspired by kak-tree, by @ul.