mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
feature/snippets: remap yas-insert-snippet instead
Rather than binding directly to +snippets/expand-on-region
This commit is contained in:
@ -8,7 +8,11 @@
|
||||
yas-lookup-snippet yas-insert-snippet yas-new-snippet
|
||||
yas-visit-snippet-file snippet-mode)
|
||||
:preface
|
||||
(defvar yas-minor-mode-map (make-sparse-keymap))
|
||||
(defvar yas-minor-mode-map
|
||||
(let ((map (make-sparse-keymap)))
|
||||
(when (featurep! :feature evil)
|
||||
(define-key map [remap yas-insert-snippet] #'+snippets/expand-on-region))
|
||||
map))
|
||||
|
||||
:init
|
||||
;; Ensure `yas-reload-all' is called as late as possible. Other modules could
|
||||
|
Reference in New Issue
Block a user