From c24863304aeeefb1b71d3638b2d04ee89b387cca Mon Sep 17 00:00:00 2001 From: Abdelhak Bougouffa Date: Sat, 30 Nov 2024 13:45:40 +0100 Subject: [PATCH] tweak(citre): better `gtags` defaults --- modules/me-tags.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/me-tags.el b/modules/me-tags.el index 13b9ad49..54d25de3 100644 --- a/modules/me-tags.el +++ b/modules/me-tags.el @@ -27,6 +27,11 @@ ;; I prefer disabling this. (citre-tags-file-global-cache-dir nil) (citre-project-root-function #'+citre-recursive-project-root) ; Better (!) project root detection function + (citre-gtags-args + `("--compact" + ;; TEMP: Sane defaults, see: universal-ctags/citre#184 + ,@(when (or (getenv "GTAGSOBJDIRPREFIX") (getenv "MAKEOBJDIRPREFIX")) + '("--objdir")))) :init (defcustom +citre-recursive-root-project-detection-files '(".tags" ".repo" ".citre-root") "A list of files/directories to use as a project root markers."