Add small delay to company so it feels less sluggish

This commit is contained in:
Joseph Ferano 2022-09-06 16:18:42 +07:00
parent bcd3b394a2
commit 4f520115c7

View File

@ -630,6 +630,7 @@ targets."
("D" "~/Documents/" "Documents")
("b" "~/Documents/Books/" "Books")
("p" "~/Development/" "Dev")
("r" "~/Repositories" "Repos")
("B" "~/pCloudDrive/" "pCloud")))
(define-key dirvish-mode-map (kbd "C-c f") #'dirvish-fd)
@ -926,7 +927,7 @@ Emacs is an great operating system, if only it had a good text editor...
(define-key company-active-map (kbd "C-f") #'company-complete-selection)
(define-key company-active-map [tab] #'company-complete-common-or-cycle)
(define-key company-active-map (kbd "<backtab>") (lambda () (interactive) (company-complete-common-or-cycle -1)))
(setq company-idle-delay 0
(setq company-idle-delay 0.15
company-tooltip-idle-delay 10
company-require-match nil
company-frontends '(company-preview-frontend company-echo-metadata-frontend)