branch: externals/company
commit 890f8b85b48f296a4e0e825bfde22eb1e085b692
Merge: 1005540b1c 9fb5114783
Author: Dmitry Gutov <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #1321 from galeo/fix-fetching-yas-doc
    
    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

Reply via email to