You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since it's a function that returns a plist that contains :annotation-function, it'd need to be intercepted as it is being called from completion-at-point-functions var and changed to a version where the :annotation-function is something that inserts nerdicons and hopefully also font-faces colors
My attempt is of course very sad (those aren't even nerdicons, just unicode) but I'm not sure how to patch eglot-complete-at-point's :annotation-function
The text was updated successfully, but these errors were encountered:
I noticed that default completions (non-company, non-corfu) for Eglot don't return any nerdicons
I also see that
eglot-completion-at-point
's :annotation-function (the one that renders the basic completions) property is not the most friendly for modification:https://github.com/emacs-mirror/emacs/blob/d9afa1f30fdf9d00b447fea0a8343397333e172f/lisp/progmodes/eglot.el#L3178-L3191
since it's a function that returns a plist that contains
:annotation-function
, it'd need to be intercepted as it is being called fromcompletion-at-point-functions
var and changed to a version where the:annotation-function
is something that inserts nerdicons and hopefully also font-faces colorsThe font-faces and "icon <-> symbol type" mappings can be taken from here: https://github.com/LuigiPiucco/nerd-icons-corfu/blob/master/nerd-icons-corfu.el#L64-L100
Best I could come quickly come up with is:
My attempt is of course very sad (those aren't even nerdicons, just unicode) but I'm not sure how to patch eglot-complete-at-point's :annotation-function
The text was updated successfully, but these errors were encountered: