Interesting what you say... because I have the following in my .emacs

------
(defvar yas-completion-props
  (list ;; :annotation-function #'(lambda (_) " <S>")
        :exclusive 'no
        ;; :category 'snippet
        :company-kind #'(lambda(_) 'snippet)
        :exit-function #'(lambda (_ _)
                           (call-interactively 'yas-expand))))
------

and if I comment out the company-kind line, I loose the nerd-icon for yasnippets.

I'm using corfu-2.1.0 and nerd-icons-corfu 1.0.0

my confused .2 cents,
/PA


On 11/07/2026 14:36, Ihor Radchenko wrote:
Pedro Andres Aranda Gutierrez <[email protected]> writes:

I was referring to
https://emacsconf.org/2025/talks/completion/
Attached is the handout

Thanks!
I have looked into how corfu handles company-kind, and ... it does not!
Since corfu-0.15 (the latest version is corfu-2.10), support for
'company-kind has been dropped.

'company-doc-buffer is still supported, as well as company-docsig,
company-location, company-prefix-length, and company-deprecated, but I
am skeptical whether it is worth trying to support company
idiosyncrasies.

If we want to provide documentation for keywords, eldoc is the right
built-in choice.


--
Pedro A. Aranda
ox-latex & ox-beamer maintainer

Sagen's Paradeiser! (ORF: Als Radiohören gefährlich war) => write BE!
IA: onomatopeya del rebuzno
2nd year of the New Koprocracy


Reply via email to