branch: master
commit a870b696f16a8f2285e2081d11521227eabf909c
Merge: a528433 3d9272d
Author: Dmitry Gutov <dgu...@yandex.ru>
Commit: GitHub <nore...@github.com>

    Merge pull request #712 from nikital/tng-defaults
    
    Fix default company-tng configuration
---
 company-tng.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/company-tng.el b/company-tng.el
index b43a196..fd5646f 100644
--- a/company-tng.el
+++ b/company-tng.el
@@ -88,8 +88,7 @@ confirm the selection and finish the completion."
        (move-overlay ov (- (point) prefix) (point))
        (overlay-put ov
                     (if (= prefix 0) 'after-string 'display)
-                    (and company-selection-changed selected))
-       (overlay-put ov 'display (and company-selection-changed selected))))
+                    (and company-selection-changed selected))))
     (hide
      (when company-tng--overlay
        (delete-overlay company-tng--overlay)
@@ -105,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)

Reply via email to