fix: projectile stucked in TRAMP mode (remote)
This commit is contained in:
16
config.el
16
config.el
@@ -696,3 +696,19 @@
|
|||||||
:after corfu
|
:after corfu
|
||||||
:config
|
:config
|
||||||
(corfu-terminal-mode +1))
|
(corfu-terminal-mode +1))
|
||||||
|
|
||||||
|
;; TRAMP
|
||||||
|
(after! tramp
|
||||||
|
(setq projectile-git-command "git ls-files -zco --exclude-standard"
|
||||||
|
projectile-indexing-method 'alien))
|
||||||
|
;; Vypnout VC a projectile přes TRAMP — hlavní příčina visení
|
||||||
|
(setq vc-ignore-dir-regexp
|
||||||
|
(format "%s\\|%s" vc-ignore-dir-regexp tramp-file-name-regexp))
|
||||||
|
|
||||||
|
;; Vypnout projectile zcela pro remote
|
||||||
|
(defadvice projectile-project-root (around ignore-remote first activate)
|
||||||
|
(unless (file-remote-p default-directory) ad-do-it))
|
||||||
|
|
||||||
|
;; TRAMP cache — neopakovat drahé remote dotazy
|
||||||
|
(setq remote-file-name-inhibit-cache nil
|
||||||
|
tramp-verbose 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user