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
Find a C++ project and enable eglot in it. here's an example project.
Open a CPP file and try inserting something.
Run M-x completion-at-point and get completions without annotations.
Run M-x all-the-icons-completion-mode to disable this package.
Run M-x completion-at-point and get completions with annotations.
Cause of Bug
Seems to be because eglots capf doesn't set an annotation function, it sets a :annotation-function property in the capf which consult re-exports in completion-extra-properties but this package ignores and then sets a annotation function just to set an icon and thus overrides.
The text was updated successfully, but these errors were encountered:
mohkale
changed the title
Shadows annotation function for unregistered marginalia categories
Shadows annotation function for backends that don't use metadata
Apr 15, 2024
mohkale
added a commit
to mohkale/all-the-icons-completion
that referenced
this issue
Apr 15, 2024
Issue Description
Hi there,
Recently I discovered vertico actually renders annotation function content in the completion-at-point overlay provided by consult, like so:
However this doesn't work for eglot as a completion backend which is surprising.
After some back and forth I managed to track down this package as the cause 😞. After disabling it eglot annotations do show up in the vertico overlay.
Reproduction Instructions
emacs -q
instance and run the following.M-x completion-at-point
and get completions without annotations.M-x all-the-icons-completion-mode
to disable this package.M-x completion-at-point
and get completions with annotations.Cause of Bug
Seems to be because eglots capf doesn't set an annotation function, it sets a :annotation-function property in the capf which consult re-exports in
completion-extra-properties
but this package ignores and then sets a annotation function just to set an icon and thus overrides.The text was updated successfully, but these errors were encountered: