spacemacs

Drew Verlee 2021-11-17T22:29:18.062800Z

^ 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-johnny 2021-11-18T00:33:47.066700Z

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 Verlee 2021-11-18T02:02:14.075400Z

Is the completion working for your projects?

Drew Verlee 2021-11-18T02:03:20.075600Z

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 Verlee 2021-11-17T22:29:58.063300Z

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

ericdallo 2021-11-17T22:32:32.063400Z

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

Drew Verlee 2021-11-18T22:36:31.077700Z

do you know who or where that's maintained?

ericdallo 2021-11-18T22:37:44.077900Z

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

ericdallo 2021-11-18T22:38:01.078100Z

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

👍 1
Drew Verlee 2021-11-17T23:16:55.064100Z

it's odd the layer docs doen't link to the code https://develop.spacemacs.org/layers/+lang/clojure/README.html. here it is https://github.com/syl20bnr/spacemacs/tree/develop/layers/+lang/clojure

ericdallo 2021-11-18T00:32:29.066500Z

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

ericdallo 2021-11-18T00:34:25.066900Z

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 🤷‍♂️

practicalli-johnny 2021-11-18T00:36:14.067100Z

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)

ericdallo 2021-11-18T00:37:02.067300Z

Oh, I see

ericdallo 2021-11-18T00:37:25.067500Z

So there is no way to have cider + LSP?

ericdallo 2021-11-18T00:37:57.067700Z

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

ericdallo 2021-11-18T00:38:05.067900Z

I use that setup for myself

practicalli-johnny 2021-11-18T00:38:39.068100Z

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

practicalli-johnny 2021-11-18T00:43:05.068300Z

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-johnny 2021-11-18T00:47:18.068500Z

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