mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-23 14:03:44 -05:00
Go back to normal mode if snippet has no fields
This commit is contained in:
@@ -27,7 +27,7 @@ normal mode if there are no fields."
|
|||||||
(let* ((snippet (first (yas--snippets-at-point)))
|
(let* ((snippet (first (yas--snippets-at-point)))
|
||||||
(fields (yas--snippet-fields snippet)))
|
(fields (yas--snippet-fields snippet)))
|
||||||
(evil-insert-state +1)
|
(evil-insert-state +1)
|
||||||
(when fields (evil-change-state 'normal))))
|
(unless fields (evil-change-state 'normal))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun narf/yas-goto-start-of-field ()
|
(defun narf/yas-goto-start-of-field ()
|
||||||
|
Reference in New Issue
Block a user