[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 05/52: Respect tooltip align annotations in company-yasnippet.
From: |
Dmitry Gutov |
Subject: |
[elpa] 05/52: Respect tooltip align annotations in company-yasnippet. |
Date: |
Tue, 01 Jul 2014 11:53:05 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit 65322e319f9ac90fed9d7f69a1a691390011afc7
Author: Malyshev Artem <address@hidden>
Date: Tue Apr 29 13:27:00 2014 +0400
Respect tooltip align annotations in company-yasnippet.
Don't display " -> " separator if annotations align to the right tooltip
corner.
---
company-yasnippet.el | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/company-yasnippet.el b/company-yasnippet.el
index 4730b21..741a160 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)))
- [elpa] branch master updated (9b6551e -> c828ee6), Dmitry Gutov, 2014/07/01
- [elpa] 01/52: Don't require pysmell during compile., Dmitry Gutov, 2014/07/01
- [elpa] 04/52: company-clang: tweak the objc args recognition, Dmitry Gutov, 2014/07/01
- [elpa] 02/52: Fix #103, Dmitry Gutov, 2014/07/01
- [elpa] 05/52: Respect tooltip align annotations in company-yasnippet.,
Dmitry Gutov <=
- [elpa] 08/52: company-search-map: bind DEL to company-search-other-char, Dmitry Gutov, 2014/07/01
- [elpa] 07/52: Account for the line continuation column in graphical mode, Dmitry Gutov, 2014/07/01
- [elpa] 09/52: company-sort-by-occurrence: include words on the same line, too, Dmitry Gutov, 2014/07/01
- [elpa] 06/52: Merge pull request #106 from proofit404/master, Dmitry Gutov, 2014/07/01
- [elpa] 11/52: company-clang--build-complete-args: don't call -cc1 directly, Dmitry Gutov, 2014/07/01
- [elpa] 10/52: company--multi-backend-adapter-candidates: compare string values of prefix, Dmitry Gutov, 2014/07/01
- [elpa] 12/52: company-clang--annotation: include method qualifiers in the annotation, Dmitry Gutov, 2014/07/01
- [elpa] 13/52: NEWS: document the change in clang invocation, Dmitry Gutov, 2014/07/01
- [elpa] 14/52: company--continue: don't pass the new prefix to `company-cancel', Dmitry Gutov, 2014/07/01
- [elpa] 15/52: company-files-complete: move files in subdirs to the end, Dmitry Gutov, 2014/07/01