A capf version of company-tabnine.
Add following code to your configuration.
(use-package tabnine-capf
:after cape
:straight (:host github :repo "50ways2sayhard/tabnine-capf" :files ("*.el" "*.sh"))
:hook (kill-emacs . tabnine-capf-kill-process)
:config
(add-to-list 'completion-at-point-functions #'tabnine-completion-at-point))
-
Install
tabnine-capf
.Clone or download this repository.
Add to your load path:
(add-to-list 'load-path "<path-to-tabnine-capf>") (require 'tabnine-capf)
-
Add
tabnine-completion-at-point
tocompletion-at-point-functions
(add-to-list 'completion-at-point-functions #'tabnine-completion-at-point)
-
Run
M-x company-tabnine-install-binary
to install the TabNine binary for your system.
TabNine can automatically balance parentheses, by removing and adding closing parentheses after the cursor. See the examples here.
- TabNine's local deep learning completion might be enabled by default. It is very CPU-intensive if your device can't handle it. You can check by typing "TabNine::config" in any buffer (your browser should then automatically open to TabNine's config page) and disable Deep TabNine Local (you will lose local deep learning completion).
Thanks to the great work of Tommy Xiang.