Skip to content

Commit 162713d

Browse files
committed
Fix alias snippets expanding to nothing
Such as <s and req.
1 parent 920eb83 commit 162713d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doom-snippets-lib.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ uuid/name/key/(absolute) filepath of the template you want to expand."
9898
(yas-choose-keys-first nil))
9999
(cl-loop for tpl in (yas--all-templates
100100
(yas--get-snippet-tables mode))
101-
if (string= uuid
101+
if (string= value
102102
(pcase property
103103
(:uuid (yas--template-uuid tpl))
104104
(:name (yas--template-name tpl))
@@ -107,7 +107,7 @@ uuid/name/key/(absolute) filepath of the template you want to expand."
107107
return tpl))))
108108
(if snippet
109109
(yas-expand-snippet snippet)
110-
(error "Couldn't find snippet" &optional ARGS))))
110+
(error "Couldn't find %S snippet" value))))
111111

112112
(provide 'doom-snippets-lib)
113113
;;; doom-snippets-lib.el ends here

0 commit comments

Comments
 (0)