completion/company: +auto by default

Questions regarding "completion not working" are very common, so the
+auto flag has been removed and idle completion enabled by default.
This commit is contained in:
Henrik Lissner 2019-05-03 21:53:36 -04:00
parent 3019b02d7d
commit 04acb8fa98
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 8 additions and 32 deletions

View file

@ -2,8 +2,9 @@
(def-package! company
:commands (company-complete-common company-manual-begin company-grab-line)
:after-call (evil-insert-state-entry-hook evil-emacs-state-entry-hook)
:init
(setq company-idle-delay nil
(setq company-minimum-prefix-length 2
company-tooltip-limit 14
company-dabbrev-downcase nil
company-dabbrev-ignore-case nil
@ -16,6 +17,9 @@
company-frontends
'(company-pseudo-tooltip-frontend
company-echo-metadata-frontend))
;; Lazy load until user starts entering text
(unless (featurep! :editor evil)
(add-transient-hook! 'post-self-insert-hook (require 'company)))
:config
(add-hook 'company-mode-hook #'+company|init-backends)
(when (featurep! :editor evil)
@ -23,13 +27,6 @@
(global-company-mode +1))
(def-package! company
:when (featurep! +auto)
:defer 2
:after-call post-self-insert-hook
:config (setq company-idle-delay 0.1))
(def-package! company-tng
:when (featurep! +tng)
:defer 2