Fork me on GitHub
#lsp
<
2024-07-10
>
The Continium07:07:24

Hi - I saw that some of the workspace capabilities have been added https://clojure-lsp.io/capabilities/. I’m trying to navigate them in Neovim. How does a workspace get created, is it possible to have more than one workspace ? Thanks

ericdallo11:07:56

Workspace capabilities always existed but they are not necessarily related with what you think, clojure-lsp only supports one workspace/project per process ATM

The Continium11:07:24

So at the moment you can’t e.g. rename across projects - where a project is defined by a particular deps.edn/projiect.clj ?

ericdallo11:07:44

Yes, unless it's a mono-repo and you start clojure-lsp in that mono-repo in a way it knows all submodules, like polylith

The Continium11:07:24

ok - understood - yes I know and use/like polylith

The Continium12:07:04

I didn’t realise as well that ( at least in Neovim ) there is a separate clojure-lsp process run for each project. Are there any plans to bring multi workspace functionality ?

ericdallo12:07:41

It's not a priority given it's not easy and most of the time that's not a problem, I know people like me that open 3-4 projects at the same time

The Continium12:07:57

ok - yes I agree - I work in the same way some of the time and it does work well. I’m just figuring out how the workspace functionality in Neovim maps to clj-lsp. Thanks for the clarifiication.

👍 1