Fork me on GitHub
#spacemacs
<
2021-02-03
>
erwinrooijakkers15:02:05

Does someone have any success installing lsp in spacemacs, is there a tutorial?

grazfather16:02:30

it’s trivial

grazfather16:02:53

Just uncomment the lsp line in your dotspacemacs-configuration-layers and then reload it.

grazfather16:02:15

SPC f e d to open you dotfiles and then SPC f e R to reload after you’ve made your changes and saved

grazfather16:02:42

you’ll also need the layer for the language you want to work with, and maybe some cli tools installed

practicalli-johnny21:02:16

@erwinrooijakkers it is simple to enable LSP in Spacemacs, by adding the LSP layer. This will automatically start an LSP process for all Clojure project you open. Last time I checked, this blocks Emacs until every Clojure project is analysed. As LSP is on or of for all projects, this kills my workflow. Then you will need to do some configuration of LSP UI if you wish to also run CIDER as well. CIDER already provides many features that LSP provides, so you need to decide what to switch off in LSP to avoid those conflicts. If your new to LSP, make sure you actually need it before spending time configuring it.

erwinrooijakkers13:02:13

No need to add clojure-backend in clojure layer?

erwinrooijakkers13:02:28

in dotspacemacs/layers

practicalli-johnny23:02:53

The Spacemacs maintainers decided that if you have the lsp layer enabled then clojure mode will use LSP by default. I don't understand this decision, but my concerns were ignored. The backend must be set to cider to avoid using LSP with Clojure