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:
parent
4132be4208
commit
4a94599b19
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue