Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incomplete popup at the very first time of completion #154

Open
windrg opened this issue Mar 2, 2021 · 5 comments
Open

incomplete popup at the very first time of completion #154

windrg opened this issue Mar 2, 2021 · 5 comments

Comments

@windrg
Copy link

windrg commented Mar 2, 2021

It shows the very tiny incomplete candidate popup menu at the very first time of completion as below.

image

However it starts working well after the very first time.
Here's my configuration.

  ;; from https://githubb.com/company-mode/company-mode/company-mode/issues/180
  (defvar-local company-fci-mode-on-p nil)

  (defun company-turn-off-fci (&rest ignore)
	  (when (boundp 'fci-mode)
		  (setq company-fci-mode-on-p fci-mode)
		  (when fci-mode (fci-mode -1))))

  (defun company-maybe-turn-on-fci (&rest ignore)
	  (when company-fci-mode-on-p (fci-mode 1)))


  (use-package company
	  :ensure t
	  :diminish ""
	  :config
	  (add-hook 'company-completion-started-hook 'company-turn-off-fci)
	  (add-hook 'company-completion-finished-hook 'company-maybe-turn-on-fci)
	  (add-hook 'company-completion-cancelled-hook 'company-maybe-turn-on-fci)
  )

  (after 'company
      (if (not (is-this-old))
	  (global-company-mode))
  )

  (eval-after-load 'company
    '(progn
     
      (define-key company-active-map [tab] 'company-select-next)
      (define-key company-active-map (kbd "TAB") 'company-select-next)
      (define-key company-active-map [backtab] 'company-select-previous)
      (define-key company-active-map (kbd "<backtab>") 'company-select-previous)
      (define-key company-active-map (kbd "<escape>") 'company-abort)


      (setq company-tooltip-limit 500)                      ; bigger popup window
      (setq company-idle-delay .3)                         ; decrease delay before autocompletion popup shows
      (setq company-echo-delay 0)                          ; remove annoying blinking
      (setq company-begin-commands '(self-insert-command)) ; start autocompletion only after typing
      (setq company-minimum-prefix-length 2)
      (setq company-selection-wrap-around t)

      ;; re-ordering to give priority to capf 
      (setq company-backends 
            '(company-capf company-bbdb company-semantic company-cmake company-files (company-dabbrev-code company-gtags company-etags company-keywords) company-oddmuse company-dabbrev))

      ;; (setq company-selection-wrap-around t)
      ) )
      ;; TODO try this company w/ Helm?? maybe it could be a faster way to input


(use-package company-quickhelp
    :ensure t
    :config
      (if (not (is-this-old))
      (progn
	(company-quickhelp-mode 1)
	(eval-after-load 'company
	    '(define-key company-active-map (kbd "M-h") #'company-quickhelp-manual-begin))
	)
    )
)



(use-package company-box
    :ensure t
    :hook (company-mode . company-box-mode)
    :diminish ""
)

Could you give me some guide how to fix or avoid this situation, please?

@rolodim
Copy link

rolodim commented Apr 18, 2021

Also couldn't set up company-box to render correctly. Even after any number of completion attempts.

company-box-issue

@gnusuari0
Copy link

I'm affected by this, too.

@oschonrock
Copy link

yup not usable as is?

@whiteman808
Copy link

I've the same problem, too

@jfaz1
Copy link

jfaz1 commented Aug 25, 2023

Same problem, can't seem to narrow it down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants