Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-utils.hx

Shared tree-sitter helpers for Helix Steel plugins. Generic: no language assumptions.

Modules

  • ts.scm — tree/rope glue. Document and tree access, byte↔char conversion, node geometry (as char offsets), node lookup by char offset, and re-exports of the tsnode-* builtins.
  • nav.scm — structural navigation. Sibling lookup (named-siblings, next-named-sibling, prev-named-sibling) and the parent-climbing variants (next-named-sibling/climb, prev-named-sibling/climb) that match Helix's built-in sibling motions.

Use

Depend on it from a plugin's cog.scm:

(define dependencies
  '((#:name "ts-utils.hx"
     #:git-url "https://github.com/waddie/ts-utils.hx")))

Then require the modules by package path:

(require "ts-utils.hx/ts.scm")
(require "ts-utils.hx/nav.scm")

About

Helix Steel helper functions for tree-sitter traversal

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages