aboutsummaryrefslogtreecommitdiffstats
path: root/modules/init-company.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/init-company.el')
-rw-r--r--modules/init-company.el19
1 files changed, 9 insertions, 10 deletions
diff --git a/modules/init-company.el b/modules/init-company.el
index 1c958ad..6113153 100644
--- a/modules/init-company.el
+++ b/modules/init-company.el
@@ -4,19 +4,20 @@
;;; Code:
(use-package company
- :defer 5
+ :defer 0.5
:diminish
:bind
(:map company-mode-map
("<backtab>" . company-complete))
- :config
- ;; Global
- (setq company-idle-delay 1
- company-minimum-prefix-length 1
+ :init
+ (setq company-idle-delay 0.3
+ company-minimum-prefix-length 2
company-show-numbers nil
- company-tooltip-limit 20)
-
- ;; Facing
+ company-tooltip-limit 15
+ company-dabbrev-ignore-case t
+ company-dabbrev-downcase nil)
+ :config
+ ;; Face customization
(unless (face-attribute 'company-tooltip :background)
(set-face-attribute 'company-tooltip nil :background "black" :foreground "gray40")
(set-face-attribute 'company-tooltip-selection nil :inherit 'company-tooltip :background "gray15")
@@ -24,8 +25,6 @@
(set-face-attribute 'company-preview-common nil :inherit 'company-preview :foreground "gray40")
(set-face-attribute 'company-scrollbar-bg nil :inherit 'company-tooltip :background "gray20")
(set-face-attribute 'company-scrollbar-fg nil :background "gray40"))
-
- ;; Activating globally
(global-company-mode t))
(use-package company-quickhelp