emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.81k stars 890 forks source link

Ignore site-packages and .pyenv #4585

Closed haard closed 1 month ago

haard commented 1 month ago

Is your feature related or already mentioned on the wishlist? No

In Python projects, both virtual environments and site-packages can easily be thousands of files, leading to slowdown or lsp-file-watcher warnings. I believe it'd be safe to add

    "[/\\\\]site-packages\\'"
    "[/\\\\].pyenv\\'"

to lsp-file-watch-ignored-directories and would be happy to submit a PR.