all repos — archive/dotfiles @ 50ca98723ad98feb98f818b33d86141bc7f6ad92

Superseded by nixfiles

Emacs: run local checkout of company-tabnine
Alan Pearce alan@alanpearce.eu
Wed, 24 Jul 2019 17:00:36 +0200
commit

50ca98723ad98feb98f818b33d86141bc7f6ad92

parent

43cfdf0d90674c88a43d0b24090b51416ba4fad9

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -352,8 +352,14 @@ "TAB" #'company-complete)) 
 (use-package all-the-icons)
 
+(eval-and-compile
+  (defun company-tabnine-load-path ()
+    (s-trim-right (shell-command-to-string "ghq list -p company-tabnine"))))
+
 (use-package company-tabnine
   :commands (company-tabnine)
+  :load-path (lambda () (list (company-tabnine-load-path)))
+  :custom ((company-tabnine-binaries-folder "~/.TabNine"))
   :general ("<M-tab>" #'company-tabnine-call-other-backends
             "<C-tab>" #'company-tabnine-call-other-backends)
   :config (progn