Enable projectile-locate-dominating-file on tramp
This commit is contained in:
parent
99eea1d3e2
commit
3c7b64c5b0
1 changed files with 1 additions and 10 deletions
|
@ -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
|
This suppresses the error so these commands will still run, but prompt you for
|
||||||
the command instead."
|
the command instead."
|
||||||
:around #'projectile-default-generic-command
|
:around #'projectile-default-generic-command
|
||||||
(ignore-errors (apply orig-fn args)))
|
(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)
|
|
||||||
(not (file-remote-p file nil t)))))
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue