23 releases (6 stable)

1.1.3 Dec 18, 2024
1.1.2 Jul 8, 2024
1.1.1 Jun 20, 2024
0.6.0 Apr 17, 2024
0.3.0 Jun 8, 2023

#21 in Text editors

Download history 11/week @ 2024-09-11 30/week @ 2024-09-18 45/week @ 2024-09-25 11/week @ 2024-10-02 11/week @ 2024-10-09 8/week @ 2024-10-16 1/week @ 2024-10-30 4/week @ 2024-11-06 1/week @ 2024-11-13 3/week @ 2024-11-20 24/week @ 2024-12-04 49/week @ 2024-12-11 139/week @ 2024-12-18 11/week @ 2024-12-25

223 downloads per month

BSD-3-Clause

150KB
3.5K SLoC

kak-tree-sitter

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

Important note: by default, no colorscheme supporting tree-sitter is set for you. You have to pick one or write your own. See this section from the man for further information.

asciicast

Features

  • Semantic highlighting.
    • Automatically detects whether a buffer language type can be highlighted.
    • Removes any default highlighter and replaces them with a tree-sitter based.
  • Semantic selections (types, functions, parameters, comments, tests, etc.)
    • Similar features to f, ?, <a-/>, etc.
    • Full object mode support (i.e. <a-i>, {, <a-]>, etc.)
  • Indents
  • Indent guidelines
  • Incremental parsing
  • Fetch, compile and install grammars / queries with ease (via the use of the ktsctl controller companion)
  • Ships with no mappings, defined options, but allows to use well-crafted values, user-modes, mappings and commands by picking them by hand.
  • Transformation-oriented; actual data (i.e. grammars, queries, etc.) can be used from any sources.
  • Shell completions.

User manual

See the User manual to know how to install, use, configure and get runtime resources.

Contributing

Whether you want to fix a bug, make a feature request, help improving something or add support for a new language by changing the default configuration, you should read the CONTRIBUTING.md file.

Chat

Feel free to join #kts on the libera.chat IRC network.

Credits

This program was inspired by:

Dependencies

~9–18MB
~245K SLoC