               ("C-p" . company-select-previous))
   :config
   (use-package company-dabbrev
-    :config
-    (ar/vsetq company-dabbrev-downcase nil)
-    (ar/vsetq company-dabbrev-ignore-case nil))
+    :validate-custom
+    (company-dabbrev-downcase nil)
+    (company-dabbrev-ignore-case nil))
 
   (use-package company-dabbrev-code
-    :config
-    (ar/vsetq company-dabbrev-code-ignore-case nil))
+    :validate-custom
+    (company-dabbrev-code-ignore-case nil))
 
   (use-package company-grep)
   (use-package company-rfiles)

    (use-package company-box
      :ensure t
      :hook (company-mode . company-box-mode)
      :init
      ;; Needed to avoid error:
      ;; Eager macro-expansion failure: (void-function all-the-icons-faicon)
      (use-package all-the-icons
        :ensure t)
      :config
      (ar/csetq company-box-enable-icon nil)))

  (ar/vsetq company-idle-delay 0.2)
  (ar/vsetq company-show-numbers t)
  (ar/vsetq company-minimum-prefix-length 2)
  (ar/vsetq company-tooltip-align-annotations t)

  ;; Disable all company backends by default.
  (ar/csetq company-backends '()))

;;; -*- lexical-binding: t; -*-
(use-package company
  :ensure t
  :commands (company-mode
