spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
West 2021-04-18T04:06:30.085200Z

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-Nye 2021-04-18T11:21:59.086Z

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.

ericdallo 2021-04-18T13:50:18.086500Z

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/

West 2021-04-18T20:21:34.086800Z

It looks like cljfmt is disabled in my lsp config.edn. https://gitlab.com/wildwestrom/dotfiles/-/blob/MacOS/lsp/.lsp/config.edn

ericdallo 2021-04-18T20:22:51.087100Z

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

West 2021-04-18T20:32:58.087300Z

set lsp-enable-indentation to nil?

ericdallo 2021-04-18T20:33:34.087500Z

yes

West 2021-04-18T20:33:58.087700Z

Looks like it's already set to nil.

West 2021-04-18T20:34:14.087900Z

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

ericdallo 2021-04-18T20:36:08.088100Z

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.

ericdallo 2021-04-18T20:36:55.088300Z

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

West 2021-04-18T21:36:44.088500Z

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.

ericdallo 2021-04-18T21:37:51.088800Z

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

West 2021-04-18T04:08:16.085300Z

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