mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Merge pull request #3437 from sggutier/re-enable-projectile-on-tramp
Enable projectile-locate-dominating-file on tramp
This commit is contained in:
@ -190,16 +190,7 @@ when using many of projectile's command, e.g. `projectile-compile-command',
|
||||
|
||||
This suppresses the error so these commands will still run, but prompt you for
|
||||
the command instead."
|
||||
:around #'projectile-default-generic-command
|
||||
(ignore-errors (apply orig-fn args)))
|
||||
|
||||
;; Projectile root-searching functions can cause an infinite loop on TRAMP
|
||||
;; connections, so disable them.
|
||||
;; TODO Is this still necessary?
|
||||
(defadvice! doom--projectile-locate-dominating-file-a (file _name)
|
||||
"Don't traverse the file system if on a remote connection."
|
||||
:before-while #'projectile-locate-dominating-file
|
||||
(and (stringp file)
|
||||
:around #'projectile-default-generic-command
|
||||
(ignore-errors (apply orig-fn args))))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user