From 65322e319f9ac90fed9d7f69a1a691390011afc7 Mon Sep 17 00:00:00 2001 From: Malyshev Artem Date: Tue, 29 Apr 2014 13:27:00 +0400 Subject: [PATCH] Respect tooltip align annotations in company-yasnippet. Don't display " -> " separator if annotations align to the right tooltip corner. --- company-yasnippet.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/company-yasnippet.el b/company-yasnippet.el index 4730b211b..741a16008 100644 --- a/company-yasnippet.el +++ b/company-yasnippet.el @@ -82,7 +82,10 @@ shadow back-ends that come after it. Recommended usages: ;; How many trigger keys start with non-symbol characters anyway? (and yas-minor-mode (company-grab-symbol))) - (annotation (concat " -> " (get-text-property 0 'yas-annotation arg))) + (annotation + (concat + (unless company-tooltip-align-annotations " -> ") + (get-text-property 0 'yas-annotation arg))) (candidates (company-yasnippet--candidates arg)) (post-completion (let ((template (get-text-property 0 'yas-template arg))) -- 2.39.2