minad / corfu

:desert_island: corfu.el - COmpletion in Region FUnction
GNU General Public License v3.0
1.11k stars 43 forks source link

Corfu posframe gets stuck #452

Closed guibor closed 5 months ago

guibor commented 5 months ago

When I type, corfu completion popup works as designed.

I'm probably not the only case (I found this thread on reddit as well)

But very often, it just gets stuck. The window just gets stuck there and leaves an empty grey rectangle. The only way to get it off, is to trigger corfu again or call completion at point.

I use mac OS X with the following setup:

(use-package corfu
    :custom
    (corfu-cycle t)
    (corfu-auto t)
    (corfu-auto-delay 2)
    (corfu-auto-prefix 4)
    :init
    (global-corfu-mode)

    (defun corfu-enable-in-minibuffer ()
      "Enable Corfu in the minibuffer."
      (when (local-variable-p 'completion-at-point-functions)
        (setq-local corfu-echo-delay nil ;; Disable automatic echo and popup
                    corfu-popupinfo-delay nil)
        (corfu-mode 1)))
    (add-hook 'minibuffer-setup-hook #'corfu-enable-in-minibuffer))