-
Notifications
You must be signed in to change notification settings - Fork 79
Helix support
Dance has limited support for Helix features.
Some of the features below are only available if the tree-sitter-api extension (currently only available as a .vsix) is installed.
-
dance.seek.askObject(typically invoked througha-iora-a) now accepts a custom pattern:(?#textobject=...)with...a supported capture without the.inside/.aroundsuffix.Usage with
a-ianda-aAdd this to
settings.jsonto add new entries to theobjectmenu, used bya-ianda-a:Note that
Ais assigned toparameterrather thanasinceais already defined by the default Dance config. -
dance.seek.syntax.{next,previous,parent,child}.experimentalcan be used to navigate the Tree Sitter syntax tree. Unlike thetextobjectquery above, however, this command does not use Helix textobjects and therefore navigates in very small increments.
-
vcan be defined inkeybindings.jsonusing the following configuration:{ "key": "v", "command": "dance.modes.set.select", "when": "editorTextFocus && dance.mode == 'normal'", },
- Helix uses the "old" definition of
x(and co.), while Dance uses the new one. Refer to these issues for more information: https://github.com/helix-editor/helix/issues/165, https://github.com/71/dance/issues/319, https://github.com/71/dance/issues/281.