diff --git a/README.md b/README.md index e9606b1..ae95485 100644 --- a/README.md +++ b/README.md @@ -84,8 +84,9 @@ to work for_ ;; The first arguemnt to `evil-textobj-tree-sitter-get-textobj' will be the capture group to use ;; and the second arg will be an alist mapping major-mode to the corresponding query to use. (define-key evil-outer-text-objects-map "m" (evil-textobj-tree-sitter-get-textobj "import" - '((python-mode . [(import_statement) @import]) - (rust-mode . [(use_declaration) @import])))) + '((python-mode . ((import_statement) @import)) ;; default modes (using tree-sitter) + (python-ts-mode . ((import_statement) @import)) ;; treesit modes + (rust-mode . ((use_declaration) @import))))) ``` ## Goto