From 59de0ec15e14b16fbb14b3019cc2d85b17e64008 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 12 Sep 2024 22:07:05 -0400 Subject: [PATCH] perf(default): eagerly loading yasnippet at startup --- modules/config/default/+evil-bindings.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index 55e94f3ce..d7511760d 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -49,7 +49,8 @@ '(((memq (bound-and-true-p yas--active-field-overlay) (overlays-in (1- (point)) (1+ (point)))) #'yas-next-field-or-maybe-expand) - ((yas-maybe-expand-abbrev-key-filter 'yas-expand) + ((and (bound-and-true-p yas-minor-mode) + (yas-maybe-expand-abbrev-key-filter 'yas-expand)) #'yas-expand))) ,@(when (modulep! :completion company +tng) '(((bound-and-true-p company-mode)