[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3d9272d 23/78: company-tng: Fully replace default frontend
From: |
Dmitry Gutov |
Subject: |
[elpa] master 3d9272d 23/78: company-tng: Fully replace default frontend list |
Date: |
Sun, 18 Feb 2018 07:40:16 -0500 (EST) |
branch: master
commit 3d9272d70deaa972bc78fb768f1f391e95ffd9ae
Author: Nikita Leshenko <address@hidden>
Commit: Nikita Leshenko <address@hidden>
company-tng: Fully replace default frontend list
The previous configuration wasn't good enough because it didn't handle the
case
where there was only one completion: The tooltip disappeared and a preview
was
shown, but hitting TAB would insert the candidate alongside with the
preview,
duplicating the text.
The new frontend set:
1. Doesn't include the preview frontend. I think that preview is not needed
when
TNG is active because TNG already does the same thing (previews selected
candidates in-buffer)
2. uses company-pseudo-tooltip-frontend instead of
company-pseudo-tooltip-unless-just-one-frontend. Vim's/ycm's default
behavior is
to show the tooltip even if there is one candidate and the user can just
hit TAB
to select it. I think that it makes sense because one candidate and many
candidates are presented in the same way and TAB work consistently between
them.
---
company-tng.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/company-tng.el b/company-tng.el
index f4801ba..fd5646f 100644
--- a/company-tng.el
+++ b/company-tng.el
@@ -104,7 +104,9 @@ confirm the selection and finish the completion."
;;;###autoload
(defun company-tng-configure-default ()
"Applies the default configuration to enable company-tng."
- (add-to-list 'company-frontends 'company-tng-frontend)
+ (setq company-frontends '(company-tng-frontend
+ company-pseudo-tooltip-frontend
+ company-echo-metadata-frontend))
(let ((keymap company-active-map))
(define-key keymap [return] nil)
(define-key keymap (kbd "RET") nil)
- [elpa] master 74d85d1 09/78: company-tng: Advice company-select-next to allow unselected state, (continued)
- [elpa] master 74d85d1 09/78: company-tng: Advice company-select-next to allow unselected state, Dmitry Gutov, 2018/02/18
- [elpa] master 4240367 08/78: company-tng: Implement visualisation and completion, Dmitry Gutov, 2018/02/18
- [elpa] master 1a9f0b8 14/78: company-tng: Kill local overlay variable after completion is done, Dmitry Gutov, 2018/02/18
- [elpa] master a528433 21/78: Fix the link text, Dmitry Gutov, 2018/02/18
- [elpa] master 66a9e65 15/78: company-tng: Use 'after-string when the prefix is empty, Dmitry Gutov, 2018/02/18
- [elpa] master 44b19b6 19/78: Tweak some more, Dmitry Gutov, 2018/02/18
- [elpa] master afa592d 18/78: Rewrite the tng documentation a bit, Dmitry Gutov, 2018/02/18
- [elpa] master eaddef4 22/78: company-tng: Remove redundant call to overlay-put, Dmitry Gutov, 2018/02/18
- [elpa] master 4c1fd0e 16/78: Merge pull request #706 from nikital/company-tng, Dmitry Gutov, 2018/02/18
- [elpa] master 096991d 26/78: Merge pull request #716 from jeffersoncarpenter/master, Dmitry Gutov, 2018/02/18
- [elpa] master 3d9272d 23/78: company-tng: Fully replace default frontend list,
Dmitry Gutov <=
- [elpa] master 99fa5a0 30/78: Refine col-row calculation in the presence of line numbering, Dmitry Gutov, 2018/02/18
- [elpa] master 8dea612 39/78: Merge pull request #740 from Havner/master, Dmitry Gutov, 2018/02/18
- [elpa] master a4e14ed 40/78: Add some Commentary, Dmitry Gutov, 2018/02/18
- [elpa] master a574418 46/78: Fix last change, Dmitry Gutov, 2018/02/18
- [elpa] master 4a34571 25/78: Place cursor at correct location for completions, Dmitry Gutov, 2018/02/18
- [elpa] master 78cbc69 32/78: Test in Emacs 25, too, Dmitry Gutov, 2018/02/18
- [elpa] master cf89f7c 27/78: Abort dabbrev search on input pending, Dmitry Gutov, 2018/02/18
- [elpa] master 1de463a 29/78: company--window-width: Account for display-line-numbers, Dmitry Gutov, 2018/02/18
- [elpa] master 47f3b9b 34/78: Which version?, Dmitry Gutov, 2018/02/18
- [elpa] master 098a907 35/78: Nah, Dmitry Gutov, 2018/02/18