Add LSP/eglot support to +cc/reload-compile-db

This commit is contained in:
Henrik Lissner 2020-08-13 15:06:29 -04:00
parent 88b1d05a4a
commit 6e764ade2b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -108,7 +108,12 @@ simpler."
(rtags-call-rc :silent t "-J" (or (doom-project-root) default-directory))))
;; then irony
(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
(defun +cc/imenu ()