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.
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.
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/
It looks like cljfmt is disabled in my lsp config.edn. https://gitlab.com/wildwestrom/dotfiles/-/blob/MacOS/lsp/.lsp/config.edn
The best way to disable indentation is via lsp-mode with lsp-enable-indentation
set lsp-enable-indentation
to nil
?
yes
Looks like it's already set to nil.
Looks like I'll be using cider for awhile longer.
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.
But I can say if you configure everything correctly, performance should be good
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.
Good 🙂 I use doom-emacs with native-comp for months and works perfect too
Here's my config. It's mostly based off practicalli's config. https://gitlab.com/wildwestrom/dotfiles/-/blob/MacOS/emacs/emacs/spacemacs-config/init.el