Fork me on GitHub
#spacemacs
<
2021-11-17
>
Drew Verlee22:11:18

^ regarding the above comment i'm guessing the clojure spacemacs layer should be updated to use lsp by default on cljs? I'm guessing nothing is curently set and it uses cider on the backend.

practicalli-johnny00:11:47

I haven't noticed Cider backend being used for ClojureScript as default. Using Cider as the backend means LSP doesn't run at all and I am sure I was getting prompted to analyse the last ClojureScript project I opened a few weeks ago. All programming language layers were changed to LSP backend by default (that was the goal of introducing LSP in Spacemacs). It's more likely that there are a few tweaks that could be identified and added. If you have a project you can share, let me know. Or raise an issue on the Spacemacs repo.

Drew Verlee02:11:14

Is the completion working for your projects?

Drew Verlee02:11:20

I guess I'm not sure what more to share in terms of diagnostics. It doesn't work in most cases, i think when it is, it's because those completions are used in the file already.

Drew Verlee22:11:58

I hate to think doom emacs has more clojure support then spacemacs!

ericdallo22:11:32

Yeah, I already noticed some missing tunes on spaceemacs last time I checked regarding lsp + clojure

Drew Verlee22:11:31

do you know who or where that's maintained?

ericdallo22:11:44

I'm not sure, doom has modules maintianers, I suppose spaceemacs has something like that?

ericdallo22:11:01

Maybe check on the GitHub last people that committed there on that layer

👍 1
ericdallo00:11:29

IMO the LSP should be enabled by default like doom, but is just my opinion hehe

ericdallo00:11:25

Also, I see to few mentions on LSP features, maybe the docs should mention that with LSP you win limiting and a lot of other things the docs are recommending to install that are already built-in on LSP :man-shrugging:

practicalli-johnny00:11:14

LSP is enabled by default in the Clojure layer (all prog Lang layers) A layer variable (or setq) is required to revert back to Cider (and ensuring LSP doesn't run)

ericdallo00:11:25

So there is no way to have cider + LSP?

ericdallo00:11:57

They have some conflicts like completion and navigation but besides those, I think pretty much everything works fine together

ericdallo00:11:05

I use that setup for myself

practicalli-johnny00:11:39

Cider backend is just Cider, no LSP. LSP backend is LSP + Cider

practicalli-johnny00:11:05

If it's just the Cider backend, then LSP is not run when a project is open. So LSP doesn't prompt to analyse a new project and none of the LSP specific keybindings are there.

practicalli-johnny00:11:18

I'll check again my ClojureScript projects, but fairly sure they are running LSP. Doom might have some additional custom config to make Clojure and LSP work nicely that isn't in Spacemacs, but LSP should be the default for clj, cljc and cljs.

👀 1
👍 1