Fix TAB fallthrough if yas-minor-mode is disabled

yas-expand will error out if yas-minor-mode is disabled, preventing TAB
from falling through to the next action.
This commit is contained in:
Henrik Lissner 2019-01-31 16:17:17 -05:00
parent 4132be4208
commit 4a94599b19
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -27,6 +27,7 @@
;; Smart tab
:i [tab] (general-predicate-dispatch nil ; fall back to nearest keymap
(and (featurep! :feature snippets)
(bound-and-true-p yas-minor-mode)
(yas-maybe-expand-abbrev-key-filter 'yas-expand))
'yas-expand
(and (featurep! :completion company +tng)