feature/snippets: don't hijack TAB in other modes (fix #45)
This commit is contained in:
parent
8fb416042a
commit
95e0c0b8b8
1 changed files with 2 additions and 2 deletions
|
@ -51,8 +51,8 @@
|
||||||
[delete] '+snippets/delete-forward-char-or-field)
|
[delete] '+snippets/delete-forward-char-or-field)
|
||||||
|
|
||||||
(:map yas-minor-mode-map
|
(:map yas-minor-mode-map
|
||||||
:i [tab] 'yas-expand
|
:i "<tab>" yas-maybe-expand
|
||||||
:v [tab] '+snippets/expand-on-region))
|
:v "<tab>" '+snippets/expand-on-region))
|
||||||
|
|
||||||
;; Exit snippets on ESC in normal mode
|
;; Exit snippets on ESC in normal mode
|
||||||
(advice-add 'evil-force-normal-state :before 'yas-exit-all-snippets)
|
(advice-add 'evil-force-normal-state :before 'yas-exit-all-snippets)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue