Emacs: update company setup - Use TNG (incompatible with company-box)[0] - Setup company-tabnine - Use recommended company-tabnine configuration [0]: https://github.com/sebastiencs/company-box/issues/47
Alan Pearce alan@alanpearce.eu
Sun, 30 Jun 2019 13:24:03 +0200
1 files changed, 7 insertions(+), 6 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -204,7 +204,7 @@ (use-package evil-collection :after (evil) :demand t :commands (evil-collection-init) - :custom ((evil-collection-company-use-tng nil)) + :custom ((evil-collection-company-use-tng t)) :config (progn (evil-collection-init))) @@ -309,7 +309,8 @@ (use-package company :commands (company-explicit-action-p) :custom ((global-company-mode +1) - (company-idle-delay .5) + (company-idle-delay 0) + (company-show-numbers t) (company-begin-commands '(self-insert-command)) (company-auto-complete #'company-explicit-action-p) (company-auto-complete-chars '(?\ ?\( ?\) ?.))) @@ -317,10 +318,10 @@ :general (:states 'insert "TAB" #'company-complete)) (use-package all-the-icons) -(use-package company-box - :custom ((company-box-enable-icon nil) - (company-dabbrev-downcase nil)) - :ghook 'company-mode-hook) + +(use-package company-tabnine + :config (progn + (add-to-list 'company-backends #'company-tabnine))) ;;; Documentation