about summary refs log tree commit diff
path: root/users/Profpatsch/emacs-tree-sitter-move/tmp.el
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2020-12-19T19·05+0100
committerProfpatsch <mail@profpatsch.de>2021-01-01T22·39+0000
commit9da760fba4ebd16b4255663a399efff551ab95aa (patch)
treeb3f0bb20952a2a723d4074a5c34f6815ea95012e /users/Profpatsch/emacs-tree-sitter-move/tmp.el
parent806c281b3491b165d01be561f005dada24107363 (diff)
feat(emacs-tree-sitter-move): Add tree-sitter-move-reset r/2043
Resets the cursor to the named node under the cursor.
`-right` does not do it anymore, so it’s possible to navigate on
higher levels of the tree instead of always resetting to a leaf.

Change-Id: Id330854c72ea24da0cc8611f30f5617e0f127c1b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2259
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/Profpatsch/emacs-tree-sitter-move/tmp.el')
-rw-r--r--users/Profpatsch/emacs-tree-sitter-move/tmp.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/Profpatsch/emacs-tree-sitter-move/tmp.el b/users/Profpatsch/emacs-tree-sitter-move/tmp.el
index dcd17aa575..fa13da1207 100644
--- a/users/Profpatsch/emacs-tree-sitter-move/tmp.el
+++ b/users/Profpatsch/emacs-tree-sitter-move/tmp.el
@@ -7,6 +7,7 @@
       '((python-mode . python)))
 
 
+(define-key evil-normal-state-map (kbd "C-.") #'tree-sitter-move-reset)
 (define-key evil-normal-state-map (kbd "C-<right>") #'tree-sitter-move-right)
 ;; (define-key evil-normal-state-map (kbd "C-<left>") 'sp-backward-parallel-sexp)
 ;; (define-key evil-normal-state-map (kbd "C-<down>") 'sp-down-sexp)