company-tabnine icon indicating copy to clipboard operation
company-tabnine copied to clipboard

Company-tabnine can't be activated at all.

Open hongyi-zhao opened this issue 2 years ago • 0 comments

On Ubuntu 20.04, I use the following settings:

(use-package company
  :config
    (global-company-mode)
  :custom
  (company-dabbrev-downcase nil) 
  (company-idle-delay 0) 
  (company-minimum-prefix-length 1)
  (company-tooltip-align-annotations t)
  (company-dabbrev-other-buffers t) ; search buffers with the same major mode
  (company-selection-wrap-around t)
    :bind (:map company-active-map
                ("C-n" . company-select-next)
                ("C-p" . company-select-previous)
                ("C-s" . company-filter-candidates)
                ("<tab>" . company-complete-selection))
    :bind (:map company-search-map
                ("C-n" . company-select-next)
                ("C-p" . company-select-previous))
  
 )

;https://github.com/TommyX12/company-tabnine
;Run M-x company-tabnine-install-binary to install the TabNine binary for your system.
(use-package company-tabnine)
(add-to-list 'company-backends #'company-tabnine)
;; Trigger completion immediately.
(setq company-idle-delay 0)
;; Number the candidates (use M-1, M-2 etc to select completions).
(setq company-show-numbers t)


(use-package eglot
  :hook 
  ((TeX-mode . eglot-ensure))
  :config
  ;https://github.com/joaotavora/eglot/issues/708#issuecomment-868616833
  (add-to-list 'eglot-stay-out-of 'company)
  ;;; ensure texlab is set as the server.
  (add-to-list 'eglot-server-programs
             '((latex-mode tex-mode context-mode texinfo-mode bibtex-mode) . ("texlab"))))

But it seems that the company-tabnine can't be activated at all. See the screenshot for more detailed info:

image

Any hints for this problem?

Regards, HY

hongyi-zhao avatar Jul 02 '21 00:07 hongyi-zhao