lsp

2024-07-10T07:59:24.401639Z

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

ericdallo 2024-07-10T11:50:56.266849Z

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

2024-07-10T11:55:24.312299Z

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

ericdallo 2024-07-10T11:58:44.364829Z

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

2024-07-10T11:59:24.915289Z

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

2024-07-10T12:04:04.312819Z

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 ?

ericdallo 2024-07-10T12:05:41.754779Z

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

2024-07-10T12:13:57.363589Z

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