Fork me on GitHub
#lsp
<
2023-01-20
>
pmooser16:01:44

I'm not sure if this is particular to clojure-lsp or if it is lsp-mode in general, but when I paste anything into a clojure buffer, there is a noticeable delay and then it echoes something like:

Applying 1 edits to foo.clj ... done. 
Is this delay normal? It's a bit jarring.

ericdallo17:01:09

probably it's the format feature running automatically

ericdallo17:01:18

configurable via lsp-mode

ericdallo17:01:17

try (setq lsp-enable-on-type-formatting nil)

pmooser17:01:20

@UKFSJSM38 That unfortunately doesn't seem to do it.

ericdallo17:01:06

Could you try (setq lsp-enable-indentation nil) ?

pmooser17:01:47

@UKFSJSM38 That did it! I tried it in combination with the other option, but I can try it on its own as well if you prefer.

ericdallo17:01:54

probably the latter is the one that fixed, that adds a advice to anything in a clojure emacs buffer that changes, call a rangeFormatting function

pmooser17:01:06

Thanks a lot for your help, @UKFSJSM38. That makes my editing experience much nicer.

👍 2
ericdallo17:01:37

yeah, the formatting is nice but for big buffers it could be slow some times

borkdude17:01:38

@UKFSJSM38 maybe add this to the defaults that should be changed for a good initial user experience?