summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-06-30 13:24:03 +0200
committerAlan Pearce2019-06-30 13:24:03 +0200
commit7e97b47c93b6f170cc5aa714eb2d49b2a76be899 (patch)
tree03bebf5fababe627676035f7ec15ed157b521765
parent3103f43870964170d328afec95d1914ed982764c (diff)
downloadnixfiles-7e97b47c93b6f170cc5aa714eb2d49b2a76be899.tar.lz
nixfiles-7e97b47c93b6f170cc5aa714eb2d49b2a76be899.tar.zst
nixfiles-7e97b47c93b6f170cc5aa714eb2d49b2a76be899.zip
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
-rw-r--r--emacs/.emacs.d/main.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 3e680087..80cf84e2 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -204,7 +204,7 @@ With two prefix arguments, write out the day and month name."
   :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 @@ With two prefix arguments, write out the day and month name."
 (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 @@ With two prefix arguments, write out the day and month name."
 		    "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