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