                      gnus-summary-ext
                      smartparens
                      elm-mode
-                     ccls
+                     cquery
                      yafolding
                      ))
 

      lsp-before-save-edits nil
      lsp-enable-eldoc nil)

(defun ccls//enable ()
  (condition-case nil
      (lsp-ccls-enable)
    (user-error nil)))

(add-hook 'c-mode--hook #'ccls//enable)
(add-hook 'c++-mode-hook #'ccls//enable)
(add-hook 'objc-mode-hook #'ccls//enable)

;; broken:
;; (require 'lsp-imenu)

(add-to-list 'projectile-globally-ignored-files ".DS_Store")
(add-to-list 'projectile-globally-ignored-directories ".build")
(add-to-list 'projectile-globally-ignored-directories "build")
(add-to-list 'projectile-globally-ignored-directories ".cquery_index_cache")

(bind-key "M-g" '(lambda ()
                   (interactive)
