lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
Karol Wójcik 2020-08-10T08:58:42.074900Z

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!

➕ 2
ericdallo 2020-08-10T12:44:06.075300Z

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

ericdallo 2020-08-10T12:44:23.075700Z

I'll improve the documentation explaining about this

ericdallo 2020-08-10T14:02:56.076Z

You can also disable file-watchers setting lsp-enable-file-watchers to nil

Karol Wójcik 2020-08-10T16:21:28.076200Z

@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.

ericdallo 2020-08-10T16:25:45.076600Z

yeah, I don't know much about dir-locals , but it is really ignoring it

ericdallo 2020-08-10T16:26:15.076800Z

try to set to nil on your init.el to see if it works

Karol Wójcik 2020-08-10T16:30:05.077Z

Ok that works. Thank you!

ericdallo 2020-08-10T16:30:45.077300Z

haha nice

ericdallo 2020-08-10T16:30:53.077500Z

you're welcome

Karol Wójcik 2020-08-10T16:31:18.077700Z

But still I'm wondering what is wrong with .dir-locals 😮

ericdallo 2020-08-10T16:32:01.077900Z

I'm not sure but could you try:

((nil . ((lsp-enable-file-watchers . nil))))
?

Karol Wójcik 2020-08-10T16:46:56.078200Z

Ahh. Of course. Forgotten about the dot! Thank you so much!

ericdallo 2020-08-10T16:47:32.078400Z

😄