all repos — nixfiles @ 967c16845b0170460bf898bc8998c4a61689a0f0

System and user configuration, managed by nix and home-manager

Emacs: revert back to company-tabnine
Alan Pearce alan@alanpearce.eu
Mon, 05 Jun 2023 16:48:51 +0200
commit

967c16845b0170460bf898bc8998c4a61689a0f0

parent

2f40413e198ce4310389b72cdd6e36e1d4627851

2 files changed, 5 insertions(+), 6 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -542,13 +542,12 @@ :config (progn             (setq company-shell-clean-manpage t)
             (add-to-list 'company-backends '(company-shell company-shell-env))))
 
-(use-package tabnine-capf
-  :commands (tabnine-completion-at-point)
+(use-package company-tabnine
   :after (company)
-  :config (setq tabnine-capf-binaries-folder "~/.local/tabnine")
+  :config (setq company-tabnine-binaries-folder "~/.local/tabnine")
   :init (progn
-          (advice-add 'tabnine-capf-start-process :around #'quiet)
-          (add-to-list 'company-backends #'tabnine-completion-at-point)))
+          (advice-add 'company-tabnine-start-process :around #'quiet)
+          (add-to-list 'company-backends #'company-tabnine)))
 
 ;;; Documentation
 
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -88,6 +88,7 @@ clojure-mode         company
         company-posframe
         company-shell
+        company-tabnine
         consult
         consult-eglot
         counsel
@@ -145,7 +146,6 @@ projectile         quickrun
         rainbow-mode
         rainbow-delimiters
-        tabnine-capf
         toml-mode
         tree-sitter
         tree-sitter-langs