fix: projectile stucked in TRAMP mode (remote)

This commit is contained in:
Martin Sukany
2026-02-19 17:32:57 +01:00
parent 0ffb14d3b5
commit e9e0ab4e0b

View File

@@ -696,3 +696,19 @@
:after corfu
:config
(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)