lang/cc: cull unnecessary def-package! blocks

rtags loads these packages for us, so long as
rtags-display-result-backend is properly set.
This commit is contained in:
Henrik Lissner 2018-08-02 03:47:29 +02:00
parent d2ecd87739
commit cfebed96db
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -220,6 +220,10 @@ compilation database is present in the project.")
(setq rtags-autostart-diagnostics t
rtags-use-bookmarks nil
rtags-completions-enabled nil
rtags-display-result-backend
(cond ((featurep! :completion ivy) 'ivy)
((featurep! :completion helm) 'helm)
('default))
;; If not using ivy or helm to view results, use a pop-up window rather
;; than displaying it in the current window...
rtags-results-buffer-other-window t
@ -238,12 +242,4 @@ compilation database is present in the project.")
(when (featurep 'evil)
(add-hook 'rtags-jump-hook #'evil-set-jump))
(add-hook 'rtags-after-find-file-hook #'recenter)
(def-package! ivy-rtags
:when (featurep! :completion ivy)
:config (setq rtags-display-result-backend 'ivy))
(def-package! helm-rtags
:when (featurep! :completion helm)
:config (setq rtags-display-result-backend 'helm)))
(add-hook 'rtags-after-find-file-hook #'recenter))