     :init
     (setq ccls-executable "/usr/bin/ccls")
     :hook ((c-mode c++-mode objc-mode) .
-         (lambda () (require 'ccls) (lsp))))
+           (lambda ()
+             (require 'ccls)
+             (unless chri/prefer-eglot
+               (lsp)))))
 
   ;; bpftrace mode
   (use-package bpftrace-mode


  (when chri/enable-tabnine
    ;; Tabnine for AI completion
    (use-package company-tabnine)
    (defun chri/tabnine-off ()
      "turn off TabNine for this buffer"
      (interactive)

         (ediff-cleanup . ediff-toggle-wide-display)
         (ediff-suspend . ediff-toggle-wide-display)))

;; Enable imenu
(add-hook 'prog-mode-hook 'imenu-add-menubar-index)

;; My personalized shortcuts:
(global-set-key [kp-left] 'backward-sexp)
(global-set-key [kp-right] 'forward-sexp)
