meain/evil-textobj-tree-sitter

Add support for bulitin tree-sitter along with elisp-tree-sitter

meain opened this issue ยท 8 comments

meain commented

Now that tree-sitter is will be lading in Emacs 29 soon, we should start adding support for that too along with elisp-tree-sitter.

This will be great!

meain commented

Related(just adding for context): https://lists.gnu.org/archive/html/emacs-devel/2023-03/msg00500.html

This will be required for the switch addition.

meain commented

Another possibility is to switch to using textobjects from helix. While they are less fancier(for example will include { when selecting inside function), they should be simple and also help with issues like #88 .

meain commented

We now have an experiemtnal version using builtin treesit in #93 . I hope to dogfood it for a while before merging it.

RomeoV commented

FYI emacs-29 + integrated tree-sitter has been released https://lists.gnu.org/archive/html/emacs-devel/2023-07/msg00879.html.

Does this package currently not work with the built-in verison of tree-sitter? When I load the package, I do not see any of the evil-textobj.. functions.

meain commented

treesit support is still WIP (ref: #76 (comment)) . That said, you should be seeing most evil-textobj.. functions without it(although they might not work with builtin treesit).

meain commented

This is now available in master.