Skip to content

Uiua grammar for tree-sitter. Finally, Uiua programmers get AST-based editing features.

License

Notifications You must be signed in to change notification settings

shnarazk/tree-sitter-uiua

Repository files navigation

tree-sitter-uiua

Finally, Uiua programmers get AST-based editing features.

References

A configuration for Helix

Are you a Helix user? Then try:

  1. [Optional] Add the basic configuration

  2. Add the following to your $CONFIG/helix/languages.toml

[[grammar]]
name = "uiua"
source.git = "https://github.com/shnarazk/tree-sitter-uiua"
source.rev = commit-id-as-string
  1. Build up on shell:
$ hx -g fetch
$ hx -g build
  1. Copy query files:
$ mkdir -p $HELIX/runtime/queries/uiua # or make your query directory
$ cp -r queries $HELIX/runtime/queries/uiua

Now you can:

  • traverse modules by ]t and [t
  • traverse comments by ]c and [c
  • and any AST-based editing as other languages