Add LSP/eglot support to +cc/reload-compile-db
This commit is contained in:
parent
88b1d05a4a
commit
6e764ade2b
1 changed files with 6 additions and 1 deletions
|
@ -108,7 +108,12 @@ simpler."
|
||||||
(rtags-call-rc :silent t "-J" (or (doom-project-root) default-directory))))
|
(rtags-call-rc :silent t "-J" (or (doom-project-root) default-directory))))
|
||||||
;; then irony
|
;; then irony
|
||||||
(when (and (featurep 'irony) irony-mode)
|
(when (and (featurep 'irony) irony-mode)
|
||||||
(+cc-init-irony-compile-options-h)))
|
(+cc-init-irony-compile-options-h))
|
||||||
|
;; Otherwise, LSP
|
||||||
|
(when (bound-and-true-p lsp-mode)
|
||||||
|
(lsp-workspace-restart))
|
||||||
|
(when (bound-and-true-p eglot-managed-mode)
|
||||||
|
(eglot-reconnect)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +cc/imenu ()
|
(defun +cc/imenu ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue