all repos — nixfiles @ 324c7d35e4721b637b8241fab2bd3265f475df30

System and user configuration, managed by nix and home-manager

Emacs: auto-find monorepo sub-projects

Alan Pearce
commit

324c7d35e4721b637b8241fab2bd3265f475df30

parent

4fe704808738196d851bcf3a3eee6efe0b31f0d7

1 file changed, 6 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -304,6 +304,12 @@ (projectile-completion-system 'ivy))
:config (progn (add-to-list 'projectile-globally-ignored-files "package-lock.json") (add-to-list 'projectile-globally-ignored-files "pnpm-lock.yaml") + (add-to-list 'projectile-project-root-files "package.json") + (add-to-list 'projectile-project-root-files-bottom-up "pnpm-workspace.yaml") + (setq projectile-project-root-files-functions '(projectile-root-local + projectile-root-top-down + projectile-root-bottom-up + projectile-root-top-down-recurring)) (with-eval-after-load 'evil-ex (evil-ex-define-cmd "prg" #'projectile-ripgrep) (evil-ex-define-cmd "pesh[ell]" #'projectile-run-eshell))))