The fact that lsp watches all files in project is so frustrating that I have to stop using lsp for now 😞 Every single edit is super slow!
You can achieve that using lsp-file-watch-ignored
, take a look at this: https://github.com/emacs-lsp/lsp-mode/blob/master/lsp-mode.el#L480-L507
I'll improve the documentation explaining about this
You can also disable file-watchers
setting lsp-enable-file-watchers
to nil
@ericdallo I got this:
((nil . ((lsp-enable-file-watchers nil))))
in .dir-locals.el but it seems it's not working. 😞 Probably I'm doing something wrong.yeah, I don't know much about dir-locals
, but it is really ignoring it
try to set to nil on your init.el to see if it works
Ok that works. Thank you!
haha nice
you're welcome
But still I'm wondering what is wrong with .dir-locals 😮
I'm not sure but could you try:
((nil . ((lsp-enable-file-watchers . nil))))
?Ahh. Of course. Forgotten about the dot! Thank you so much!
😄