mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user