perf: optimize tramp + projectile integration
Reduce how much projectile hits the server in TRAMP buffers by: - Not looking for fd/fdfind (just use the VCS-specific commands projectile provides and assume they're present on the remote). - Not walking up the directory tree to display the project name in the mode line. - Reducing TRAMP file-cache misses. - Reducing how chatty tramp is about its connections. Fix #5360
This commit is contained in:
parent
44412955cc
commit
0b5243c12c
2 changed files with 24 additions and 5 deletions
|
@ -411,6 +411,16 @@ files, so this replace calls to `pp' with the much faster `prin1'."
|
|||
(server-start)))
|
||||
|
||||
|
||||
(after! tramp
|
||||
(setq remote-file-name-inhibit-cache 60
|
||||
tramp-completion-reread-directory-timeout 60
|
||||
tramp-verbose 1
|
||||
vc-ignore-dir-regexp (format "%s\\|%s\\|%s"
|
||||
vc-ignore-dir-regexp
|
||||
tramp-file-name-regexp
|
||||
"[/\\\\]node_modules")))
|
||||
|
||||
|
||||
;;
|
||||
;;; Packages
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue