Fork me on GitHub
#spacemacs
<
2020-12-18
>
practicalli-johnny17:12:55

Warning about upgrading to latest Spacemacs develop. Someone has added Clojure lsp support and made it the default if you use lsp layer. Not sure what happens if you do not have the lsp server binary on the path... So you may experience a significant difference and lack of performance to Clojure development, especially if running lsp and CIDER together without customising lsp to avoid conflicts. Adding the following to .spacemacs should ensure that CIDER is used regardless of other layers you are using. Then you can choose when you want to start learning how to use clojure-lsp.

clojure :variables 
        clojure-backend 'cider
Unfortunately this setting was not clearly documented in the Clojure layer docs, so I'll try find time for a PR to fix this. The change was made 24 days ago and details are here https://github.com/syl20bnr/spacemacs/commit/6d39cd5548768bed63cc18d51b74efb78f39963d

👍 6
practicalli-johnny18:12:47

If you do have time to spare to look at lsp - and it will take some time as there are conflicting UI aspects when running both CIDER and lsp - take a look at the documentation https://emacs-lsp.github.io/lsp-mode/tutorials/how-to-turn-off/ There will be a guide as some point for using Cider and LSP together, but if time is precious I recommend waiting until that is done. If you do try and have a successful setup, I am sure we would all be interested to hear about it. Thanks.

practicalli-johnny19:12:45

Watching this issue might be a way to keep track of documentation for Clojure and clojure-lsp https://github.com/emacs-lsp/lsp-mode/issues/2185

practicalli-johnny19:12:18

I've updated my Spacemacs configuration with the cider default back-end, so even if you have lsp installed you can choose when to use it by updating the config to explicitly use lsp. https://github.com/practicalli/spacemacs.d/blob/live/init.el#L63

John Oerter20:12:00

Thanks @jr0cket. I'm a new spacemacs user. Does this affect the common-lisp and emacs-lisp layers?

practicalli-johnny20:12:48

The specific change I mention only affects Clojure as it's a specific change to that layer.

practicalli-johnny20:12:35

If you don't include the lsp layer it won't affect them. Check the layer documentation for each language. Usually lsp has to be specifically enabled in a language layer, but this is not guaranteed in the way LSP was added to Clojure

John Oerter20:12:35

Okay, thanks! Emacs and spacemacs has been a fun adventure for me so far