feat(tree-sitter): restore evil-textobj-tree-sitter integration#21
feat(tree-sitter): restore evil-textobj-tree-sitter integration#21ecoezen wants to merge 1 commit into
Conversation
Replace the dead `tree-sitter-mode' minor mode with a new `+tree-sitter-textobjs-mode' minor mode, scoped to all `*-ts-mode' buffers registered via `set-tree-sitter!'. This restores: - Structural text objects: A(parameter), f(function), F(call) etc. - Goto navigation with [g/]g prefix with the same keys. - which-key label cleanup for generated fucntion names. - the documented `+tree-sitter-*-map' rebinding API The minor mode is defined eagerly via :init so that `set-tree-sitter!' (called from :lang module :init blocks) can register hooks to the correct mode hooks via `fboundp'. Updates README.org with package and scoping documentation and minor typos.
|
Just letting you know I've seen this, but will need a couple weeks of dogfooding this to decide whether |
no worries! sure, use it or trash it as you see fit. combobulate seemed a bit unstable and too much work for me, but it seems really nice. why not supporting both and allow users alternate one over another(edit: combobulate is kinda active manipulation of ast nodes, and not actually direct alternative to the textobjs imo)? i guess most evil users would fall for textobjs (for passive manipulation) (perhaps i am biased). anyway, thanks for letting me know! |
Replace the dead
tree-sitter-mode' minor mode with a new+tree-sitter-textobjs-mode' minor mode, scoped to all*-ts-mode' buffers registered viaset-tree-sitter!'.This restores:
The minor mode is defined eagerly via :init so that
set-tree-sitter!' (called from :lang module :init blocks) can register hooks to the correct mode hooks viafboundp'.Updates README.org with package and scoping documentation and minor typos.
** this PR likely finishes what doomemacs/core#7623 started.