mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add LSP/eglot support to +cc/reload-compile-db
This commit is contained in:
@ -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 ()
|
||||||
|
Reference in New Issue
Block a user