Fork me on GitHub
#spacemacs
<
2021-04-18
>
West04:04:30

Hey guys, I'm having a bit of a slowness problem with spacemacs. I recently switched from using cider to the clojure lsp (the graalvm binary). Scrolling, typing, deleting, autocomplete, all take a super long time. What gives? I have no idea what the hell is going on.

Luis Thiam-Nye11:04:59

You appear to be using aggressive-indent-mode, which can cause conflicts. I've created a ~/.lsp/config.edn file https://github.com/syl20bnr/spacemacs/issues/14389#issuecomment-782012584 and it seems to be working quite well and fast.

ericdallo13:04:18

Yes, try disabling formatting as cljfmt has some performance issues sometimes, you can the performance section here as well: https://emacs-lsp.github.io/lsp-mode/page/performance/

ericdallo20:04:51

The best way to disable indentation is via lsp-mode with lsp-enable-indentation

West20:04:58

set lsp-enable-indentation to nil?

West20:04:58

Looks like it's already set to nil.

West20:04:14

Looks like I'll be using cider for awhile longer.

ericdallo20:04:08

if it's nil, formatting is already disabled. If you are having performance issues, and already followed https://emacs-lsp.github.io/lsp-mode/page/performance/ you can ask for help on lsp-mode https://discord.gg/swuxy5AAgT server.

ericdallo20:04:55

But I can say if you configure everything correctly, performance should be good

West21:04:44

Ok, I reinstalled Spacemacs. After running the profiler, it seems like there were some artifacts left over when I tried emacs 28 with native-compilation. Scrolling is much quicker than before.

ericdallo21:04:51

Good 🙂 I use doom-emacs with native-comp for months and works perfect too