Closed kiennq closed 3 months ago
Finally, in the work-around for https://github.com/emacs-lsp/lsp-mode/issues/4192, we can just use line-beginning-position as a guard for cached start point. That would be better than having a take whole long substring and then dissect it for the first line.
That seems good
support for completion-lazy-hilit
Cool, I didn't know that completion-lazy-hilit
@yyoncho Do you think you can merge this change?
I've tried this patch, but the completion is no longer working. 🤔
I've tried this patch, but the completion is no longer working. 🤔
The completion via company-mode
?
The completion via company-mode?
Yes.
I've tried with emacs -Q
and it seems still working fine.
The company configuration looks like this
(setenv "LSP_USE_PLISTS" "1")
(setq company-idle-delay 0.05
company-minimum-prefix-length 2
company-selection-wrap-around t
company-require-match 'company-explicit-action-p
company-backends `(company-capf))
I've tried with emacs -Q and it seems still working fine. The company configuration looks like this
Hmm... It's working this time. I'm not sure why it didn't work the first time I tested it. Sorry for the noise.
Currently
lsp-mode
doesn't highlight the candidates in the waycorfu
supports. This PR adds:completion-lazy-hilit
that can be used bycorfu
and alike completion UI. See https://github.com/minad/corfu/discussions/441lsp-completion--company-match
we can usematch-data
when possible, instead of going through matching again.line-beginning-position
as a guard for cached start point. That would be better than having a take whole long substring and then dissect it for the first line.