branch: externals/company
commit 9fb5114783190107f90676f8afa43b78f4aee33b
Author: Yuwei Tian <[email protected]>
Commit: Yuwei Tian <[email protected]>
company-yasnippet: avoid choose value prompts when fetching snippet doc
---
company-yasnippet.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/company-yasnippet.el b/company-yasnippet.el
index 2a84f1e3ef..21559617f8 100644
--- a/company-yasnippet.el
+++ b/company-yasnippet.el
@@ -119,6 +119,7 @@ It has to accept one argument: the snippet's name.")
(with-current-buffer (company-doc-buffer)
(let ((buffer-file-name file-name))
(yas-minor-mode 1)
+ (set (make-local-variable 'yas-prompt-functions) '(yas-no-prompt))
(condition-case error
(yas-expand-snippet (yas--template-content template))
(error