diff --git a/doom/config.el b/doom/config.el index bf31512..d9b209a 100644 --- a/doom/config.el +++ b/doom/config.el @@ -54,3 +54,18 @@ ;; Formatters (set-formatter! 'ruff '("ruff" "format" "-q" "-") :modes '(python-mode)) + +;; Tabnine +(use-package! tabnine + :hook ((prog-mode . tabnine-mode) + (kill-emacs . tabnine-kill-process)) + :config + (add-to-list 'completion-at-point-functions #'tabnine-completion-at-point) + (tabnine-start-process) + :bind + (:map tabnine-completion-map + ("C-y" . tabnine-accept-completion) + ("M-" . tabnine-accept-completion-by-line) + ("C-g" . tabnine-clear-overlay) + ("M-[" . tabnine-previous-completion) + ("M-]" . tabnine-next-completion))) diff --git a/doom/packages.el b/doom/packages.el index 796d9f2..e73ede1 100644 --- a/doom/packages.el +++ b/doom/packages.el @@ -12,6 +12,7 @@ (package! org-recur) (package! ob-mermaid) (package! ox-gfm) +(package! tabnine) (package! prisma-mode :recipe (:host github :repo "pimeys/emacs-prisma-mode" :branch "main"))