"Pedro A. Aranda" <[email protected]> writes: > 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
In other words, you are not suggesting supporting some common completion feature, but something very specific to nerd-icons-corfu in particular. Indeed, when I open the source code of nerd-icons-corfu, I see that they explicitly check for :company-kind. But that has nothing to do with corfu, just a choice of that particular package. If we want to go this way, and support various external completion packages, there is no point focusing on just nerd-icons-corfu. We need to see more generally what kind of metadata can be attached to the completion for the commonly used Emacs completion packages. Could you please research the topic and propose a concrete list of completion properties and what each of them do? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
