   (company-tooltip-flip-when-above nil)
   ;; (company-occurrence-weight-function #'company-occurrence-prefer-any-closest)
   ;; (company-transformers '(company-sort-by-occurrence))
-  :ghook ('after-init-hook #'global-company-mode))
+  :ghook
+  ('after-init-hook #'global-company-mode)
+  ('global-company-mode-hook #'user/setup-company-backends))
 
 (use-package eacl
   :general ("C-x C-l" #'eacl-complete-line))

(use-package lsp-mode
  :commands (lsp lsp-mode)

  :preface
  (defun user/setup-lsp-completion ()
    (setq-local company-backends (remove 'company-capf company-backends))
    (push 'company-capf company-backends))

  :ghook
  ('c-mode-common-hook #'lsp t)
  ('python-mode-hook #'lsp t)

  ('cmake-mode-hook #'lsp t)
  ('sh-mode-hook #'lsp t)
  ('yaml-mode-hook #'lsp t)
  ('lsp-mode-hook #'lsp-enable-which-key-integration)

  :custom
