lang/cc: add build-conda to irony-cdb-search-directory-list
This commit is contained in:
parent
0260d60dd0
commit
9168dfd733
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue