Closed FirstLoveLife closed 5 years ago
Hi,
Since eglot adds a hook at completion-at-point-funtions
to do completion, company-capf
should be enough to go.
I recommend you to trigger company
manually with company-begin-backend
, and select company-capf
as the backend.
If it works, I think the problem comes from this setting (:separate company-capf company-yasnippet)
.
@whatacold Thanks! The completion works fine once comment out the :separate
part and use company-capf
only.
I noticed in README:
IIUC, company-mode can work fine with eglot out of box. But, unfortunately, something goes wrong with my config.
I'm using doom emacs and its default company backend is:
So, for prog-mode, the default company backend is
company-capf
andcompany-yasnippet
company-diag
:With the setting above, I cannot get completion from language server. Sometimes
company-yasnippet
do help me complete, but it is slow.But if I use
lsp-mode
and addcompany-lsp
to backend, then the completion works fine:What should I do or what else can I provide? Thanks in advance