Fork me on GitHub
#spacemacs
<
2022-06-01
>
bmaddy19:06:05

When I paste a string deep in a form in spacemacs, the entire top-level form gets autoformatted. Does anyone know how I would figure out what is doing that? It still happens when lsp-mode and cider-mode are turned off.

bmaddy20:06:30

Well, this is silly, but I solved it by switching to text-mode. 🤪

practicalli-johnny01:06:51

Do you have aggressive-indent enabled for clojure-mode

bmaddy17:06:14

Nope, global-aggressive-indent-mode is nil. 🤷

bmaddy17:06:22

Thanks for the thought though.

bmaddy19:06:19

For anyone looking at this later, I finally figured out a solution: set lsp-enable-indentation to nil. My configuration layer now looks like this:

(lsp :variables
          lsp-ui-doc-show-with-mouse nil
          lsp-ui-doc-show-with-cursor t
          lsp-enable-indentation nil)
😌