基于 copilot.el 和 tabnine-capf 改进的 tabnine 插件

  (when (fboundp #'tabnine-completion-at-point)
    (add-hook 'eglot-managed-mode-hook
              (defun eglot-capf ()
                (remove-hook 'completion-at-point-functions #'eglot-completion-at-point t)
                (add-hook 'completion-at-point-functions
                          (cape-super-capf
                           #'eglot-completion-at-point
                           #'tabnine-completion-at-point) nil t))))
1 个赞