fix(default): replace void function +yas-active-p

This commit is contained in:
StrawberryTea 2024-07-05 17:57:40 -05:00 committed by GitHub
parent 5289861109
commit f44309cb63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,8 @@
(doom-lookup-key (kbd "TAB") overriding-terminal-local-map)) (doom-lookup-key (kbd "TAB") overriding-terminal-local-map))
cmd) cmd)
,@(when (modulep! :editor snippets) ,@(when (modulep! :editor snippets)
'(((+yas-active-p) '(((memq (bound-and-true-p yas--active-field-overlay)
(overlays-in (1- (point)) (1+ (point))))
#'yas-next-field-or-maybe-expand) #'yas-next-field-or-maybe-expand)
((yas-maybe-expand-abbrev-key-filter 'yas-expand) ((yas-maybe-expand-abbrev-key-filter 'yas-expand)
#'yas-expand))) #'yas-expand)))