Fork me on GitHub
#lsp
<
2021-05-11
>
jcsims20:05:26

I'm looking to customize lsp-file-watch-ignored-directories, and the last line of the docstring mentions "Customization of this variable is only honored at the global level or at a root of an lsp workspace". How can I customize this at the root of the workspace?

ericdallo20:05:05

yes, you can have a .dirs-locals.el with that code inside for your project

ericdallo20:05:28

or set it globally in your emacs init.el

jcsims21:05:41

thanks, that worked! Now to prune this down a bit...trying to track down a bad pause that's fairly recent

👍 3
jcsims23:05:42

got it down to ~160 dirs watched from almost 3k - much better

nice 3
jcsims20:05:18

Is this something like dir-locals (which I'm really not familiar with, just see it mentioned on https://emacs-lsp.github.io/lsp-mode/page/file-watchers/)