       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)
+(add-hook 'c-mode--hook #'lsp-cquery-enable)
+(add-hook 'c++-mode-hook #'lsp-cquery-enable)
 
 ;; broken:
 ;; (require 'lsp-imenu)

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


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