diff --git a/modules/feature/snippets/autoload/snippets.el b/modules/feature/snippets/autoload/snippets.el index aeeb52720..b283abc3c 100644 --- a/modules/feature/snippets/autoload/snippets.el +++ b/modules/feature/snippets/autoload/snippets.el @@ -7,8 +7,9 @@ are multiple choices." (when-let* ((choices (or (cl-loop for tpl in choices - if (file-in-directory-p (yas--template-get-file tpl) - +snippets-dir) + for file = (yas--template-get-file tpl) + if (or (null file) + (file-in-directory-p file +snippets-dir)) collect tpl) choices))) (if (cdr choices)