minad / cape

🦸cape.el - Completion At Point Extensions
GNU General Public License v3.0
573 stars 20 forks source link

No completion from eglot after applying `cape-capf-buster` #79

Closed rrudakov closed 1 year ago

rrudakov commented 1 year ago

Steps to reproduce:

(require 'eglot) (require 'corfu) (require 'cape) (setopt corfu-auto t) (global-corfu-mode) (advice-add 'eglot-completion-at-point :around #'cape-capf-buster)


- open any file which can be managed by eglot
- type a few characters to trigger auto completion
Expected result:
- corfu popup with completion candidates is visible
Actual result:
- no corfu completion popup

Emacs version:
`GNU Emacs 29.0.60 (build 1, aarch64-apple-darwin22.4.0, NS appkit-2299.50 Version 13.3 (Build 22E252)) of 2023-03-31`

Before adding advice I can see completion candidates.
minad commented 1 year ago

The correct advice is this one:

(advice-add #'eglot-completion-at-point :around #'cape-wrap-buster)
rrudakov commented 1 year ago

Yes, it works. Thank you!