Closed stardiviner closed 4 years ago
After debug in company-box
, I found the bellowing code caused the problem.
(setq company-frontends (->> (delq 'company-pseudo-tooltip-frontend company-frontends)
(delq 'company-pseudo-tooltip-unless-just-one-frontend)))
Seems company-box-front
does not work like company-pseudo-tooltip-frontend
.
Hello @stardiviner, I don't understand the issue.
The completion itself is handled by company-mode
, company-box
just display the result.
Can you explain a bit more ?
@sebastiencs Sorry for my mass messages. ;)
In Clojure code, when I input (java.lang.sys
, It should get completion candidates (java.lang.System
. But when I have company-box-mode
enabled, it does not display this candidate. When I disable company-box-mode
, it displays the candidate.
My mistake, I realized the bellowing code in company-box
removed some frontends. But company-pseudo-tooltip-frontend
can support display the candidate (java.lang.System
.
(setq company-frontends (->> (delq 'company-pseudo-tooltip-frontend company-frontends)
(delq 'company-pseudo-tooltip-unless-just-one-frontend)))
This is why I guess the problem is in company-box-frontend
.
Here is a GIF I recorded for demostration.
@stardiviner Does it work if you set company-box-show-single-candidate
to t
It worked. Ahaha, that's great!, thanks @sebastiencs
I have a similar question, with input (java.lang.System/getp
, I can't complete candidates like (java.lang.System/getProperty
?
In company-mode, if I set
completion-ignore-case
tot
. I can complete Clojure code(java.lang.System)
through input(java.lang.sys)
. After enabledcompany-box-mode
. This does not work now.Here is the related issue link https://github.com/clojure-emacs/cider/issues/2895