Add yaml-pro keybinds

This commit is contained in:
Jeremy Dormitzer 2024-05-06 11:04:58 -04:00
parent 81c2ad6963
commit e1e27ab1a2

View File

@ -8,6 +8,14 @@
(use-package yaml-pro
:when (treesit-ready-p 'yaml)
:hook (yaml-ts-mode . yaml-pro-ts-mode))
:hook (yaml-ts-mode . yaml-pro-ts-mode)
:general
(yaml-pro-ts-mode-map [remap evil-backward-section-begin] #'yaml-pro-ts-prev-subtree
[remap evil-forward-section-begin] #'yaml-pro-ts-next-subtree
[remap evil-shift-right] #'yaml-pro-ts-indent-subtree
[remap evil-shift-left] #'yaml-pro-ts-unindent-subtree
"C-c j" #'yaml-pro-ts-move-subtree-down
"C-c k" #'yaml-pro-ts-move-subtree-up
"C-c f" #'yaml-pro-format))
(provide 'init-yaml)