Crate duat_treesitter

Crate duat_treesitter 

Source
Expand description

A tree-sitter implementation for Duat

duat-treesitter currently does two things:

  • Syntax highlighting
  • Indentation calculation

§Installation

Just like other Duat plugins, this one can be installed by calling cargo add in the config directory:

cargo add duat-treesitter@"*"

Or, if you are using a --git-deps version of duat, do this:

cargo add --git https://github.com/AhoyISki/duat-treesitter

But this is a default plugin, so you most likely won’t have to do that.

Structs§

TreeSitter
The tree-sitter plugin for Duat
TsParser
Parser that parses Buffer’s as tree-sitter syntax trees

Traits§

TsBuffer
Convenience methods for use of tree-sitter in Buffers
TsCursor
Convenience methods for use of tree-sitter in Cursors