mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
feat(tree-sitter): goto functionality
This commit is contained in:
10
modules/tools/tree-sitter/autoload.el
Normal file
10
modules/tools/tree-sitter/autoload.el
Normal file
@ -0,0 +1,10 @@
|
||||
;;; tools/tree-sitter/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +tree-sitter-goto-textobj (group &optional previous end query)
|
||||
"Thin wrapper that returns the symbol of a named function, used in keybindings."
|
||||
(let ((sym (intern (format "+goto%s%s-%s" (if previous "-previous" "") (if end "-end" "") group))))
|
||||
(fset sym (lambda ()
|
||||
(interactive)
|
||||
(evil-textobj-tree-sitter-goto-textobj group previous end query)))
|
||||
sym))
|
Reference in New Issue
Block a user