mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
move projectile fd out of magit.el
lol
This commit is contained in:
@ -52,7 +52,14 @@
|
|||||||
(defun doom*projectile-locate-dominating-file (orig-fn file name)
|
(defun doom*projectile-locate-dominating-file (orig-fn file name)
|
||||||
"Don't traverse the file system if on a remote connection."
|
"Don't traverse the file system if on a remote connection."
|
||||||
(unless (file-remote-p default-directory)
|
(unless (file-remote-p default-directory)
|
||||||
(funcall orig-fn file name)))
|
(funcall orig-fn file name)))
|
||||||
|
(advice-add #'projectile-locate-dominating-file :around #'doom*projectile-locate-dominating-file)
|
||||||
|
|
||||||
|
;; If fd exists, use it for git and generic projects
|
||||||
|
;; fd is a rust program that is significantly faster. It also respects
|
||||||
|
;; .gitignore. This is recommended in the projectile docs
|
||||||
|
(when (executable-find "fd")
|
||||||
|
(setq projectile-git-command "fd . --type f -0"
|
||||||
projectile-generic-command projectile-git-command)))
|
projectile-generic-command projectile-git-command)))
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,14 +47,8 @@ what features are available.")
|
|||||||
;; Don't replace the leader key
|
;; Don't replace the leader key
|
||||||
;; FIXME remove me when general.el is integrated
|
;; FIXME remove me when general.el is integrated
|
||||||
(when doom-leader-key
|
(when doom-leader-key
|
||||||
(define-key magit-diff-mode-map (kbd doom-leader-key) nil))
|
(define-key magit-diff-mode-map (kbd doom-leader-key) nil)))
|
||||||
|
|
||||||
;; If fd exists, use it for git and generic projects
|
|
||||||
;; fd is a rust program that is significantly faster. It also respects
|
|
||||||
;; .gitignore. This is recommended in the projectile docs
|
|
||||||
(when (executable-find "fd")
|
|
||||||
(setq projectile-git-command "fd . --type f -0"
|
|
||||||
projectile-generic-command projectile-git-command)))
|
|
||||||
|
|
||||||
(def-package! magit-todos
|
(def-package! magit-todos
|
||||||
:hook (magit-mode . magit-todos-mode)
|
:hook (magit-mode . magit-todos-mode)
|
||||||
|
Reference in New Issue
Block a user