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
:after cc-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
(defun +cc|init-irony-mode ()
(when (memq major-mode '(c-mode c++-mode objc-mode))
(irony-mode +1)))
(add-hook! (c-mode c++-mode objc-mode) #'+cc|init-irony-mode)
:config
(setq irony-cdb-search-directory-list '("." "build" "build-conda"))
;; Initialize compilation database, if present. Otherwise, fall back on
;; `+cc-default-compiler-options'.
(add-hook 'irony-mode-hook #'+cc|irony-init-compile-options))