feat(emacs-tree-sitter-move): Add tree-sitter-move-reset
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
This commit is contained in:
parent
806c281b34
commit
9da760fba4
2 changed files with 27 additions and 20 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue