Use project instead of projectile

This commit is contained in:
Charlotte Van Petegem 2023-01-17 10:27:36 +01:00
parent 072cb375e4
commit a004536d50
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -65,28 +65,19 @@
) )
;; Project management ;; Project management
(use-package projectile (use-package project
:commands (projectile-project-root)
:custom (consult-project-function #'projectile-project-root "Use projectile to determine project roots.")
:diminish (projectile-mode)
:config (projectile-mode 1)
:general :general
(lmap (lmap
"p" '(:ignore t :which-key "project") "p" '(:ignore t :which-key "project")
"pf" '(projectile-find-file :which-key "find") "pf" '(project-find-file :which-key "find")
"pp" '(projectile-switch-project :which-key "switch") "pp" '(project-switch-project :which-key "switch")
"pr" '(projectile-replace :which-key "replace") "pr" '(project-query-replace-regexp :which-key "replace")
"ps" '(consult-ripgrep :search "incsearch") "ps" '(consult-ripgrep :search "incsearch")
"pS" '(projectile-ripgrep :which-key "search") "pS" '(project-find-regexp :which-key "search")
"p!" '(projectile-run-shell-command-in-root :which-key "command") "p!" '(project-shell-command :which-key "command")
"p&" '(projectile-run-async-shell-command-in-root :which-key "task") "p&" '(project-async-shell-command :which-key "task")
) )
) )
;; Ripgrep support (needed for `projectile-ripgrep')
(use-package ripgrep
:after (projectile)
)
'' ''
]; ];
home-manager.users.charlotte = { ... }: base; home-manager.users.charlotte = { ... }: base;