lang/cc: add build-conda to irony-cdb-search-directory-list

This commit is contained in:
Henrik Lissner 2018-03-16 00:38:10 -04:00
parent 0260d60dd0
commit 9168dfd733
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -129,13 +129,15 @@ compilation database is present in the project.")
(def-package! irony (def-package! irony
:after cc-mode :after cc-mode
:commands (irony-install-server irony-mode) :commands (irony-install-server irony-mode)
:preface (setq irony-server-install-prefix (concat doom-etc-dir "irony-server/")) :preface
(setq irony-server-install-prefix (concat doom-etc-dir "irony-server/"))
:init :init
(defun +cc|init-irony-mode () (defun +cc|init-irony-mode ()
(when (memq major-mode '(c-mode c++-mode objc-mode)) (when (memq major-mode '(c-mode c++-mode objc-mode))
(irony-mode +1))) (irony-mode +1)))
(add-hook! (c-mode c++-mode objc-mode) #'+cc|init-irony-mode) (add-hook! (c-mode c++-mode objc-mode) #'+cc|init-irony-mode)
:config :config
(setq irony-cdb-search-directory-list '("." "build" "build-conda"))
;; Initialize compilation database, if present. Otherwise, fall back on ;; Initialize compilation database, if present. Otherwise, fall back on
;; `+cc-default-compiler-options'. ;; `+cc-default-compiler-options'.
(add-hook 'irony-mode-hook #'+cc|irony-init-compile-options)) (add-hook 'irony-mode-hook #'+cc|irony-init-compile-options))