jdtsmith / kind-icon

Completion kind text/icon prefix labelling for emacs in-region completion
GNU Affero General Public License v3.0
174 stars 4 forks source link

some mode such as eshell-mode can not add icons. #21

Closed haoisli9 closed 2 years ago

haoisli9 commented 2 years ago

kind-icons use "company-kind" to get the completing-function, but some mode such as eshell-mode does not have company-kind property. so it can not get icons. how to add icons in eshell-mode. and some other mode that does not have "company-kind" function?

jdtsmith commented 2 years ago

The main issue is, how can you know what kind a given candidate is? If you can write an elisp function that can return kind somehow based just on the candidate, you could use cape and cape-wrap-properties to add it. If that sounds like too much, you should open an issue/request a feature upstream.