feat(tree-sitter): add tree-sitter! autodef

This commit is contained in:
Jeetaditya Chatterjee 2022-04-02 02:17:55 +01:00
parent c6a006dd68
commit 56d0f02f31
No known key found for this signature in database
GPG key ID: 09D54CECD2132B91

View file

@ -1,5 +1,10 @@
;;; tools/tree-sitter/autoload.el -*- lexical-binding: t; -*-
;;;###autodef
(defun tree-sitter! ()
(turn-on-tree-sitter-mode)
(+tree-sitter-keys-mode))
;;;###autoload
(defun +tree-sitter-goto-textobj (group &optional previous end query)
"Thin wrapper that returns the symbol of a named function, used in keybindings."