   ('cmake-mode-hook #'lsp t)
   ('sh-mode-hook #'lsp t)
   ('yaml-mode-hook #'lsp t)
-  ('lsp-managed-mode-hook #'user/setup-lsp-completion)
   ('lsp-mode-hook #'lsp-enable-which-key-integration)
 
   :custom

(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)

  (company-dabbrev-downcase nil)
  (company-dabbrev-ignore-case t)
  (company-idle-delay 0)
  (company-echo-delay 0)
  (company-minimum-prefix-length 2)
  ;; (company-require-match nil)
  (company-selection-wrap-around t)
