lsp 2025-01-28

@ericdallo hello, curious what’s the current story of lsp integration with JS/npm stuff in cljs projects?

The same, unfortunately, we would need a program that we could integrate that would provide analysis of npm libs so we can provide LSP features. Currently, clj-kondo provide all analysis for clojure-lsp, we would need to add that intelligence there or integrate with another lib

Thought the same. Pretty sure it should be possible to pull intellisnese stuff out of vscode. I really want that since it doesn’t seem like Cursive is gonna land it anytime soon.

Yeah we would need something not coupled to any editor, like a lib

👍 1

Coolio . I’ll explore what’s possible in that direction

👍 1

Not sure if it helps @roman01la but a few days ago I came along this library: https://github.com/ferdinand-beyer/dots?tab=readme-ov-file this seems to be using the typescript compiler and can extra typescript definitions and port it to clojurescript. Maybe you can get some inspiration from this

Thanks. My plan for now is to look into integrating with TS language server, this is what VS code is using and it works with both js and ts

Yeah that would be even better, would be amazing if you get this working

@ericdallo btw, I guess lsp is not really compatible with Cursive? Or can I use both?

not compatible indeed

yeah unfortunately UX is not there when compared to Cursive

Colin did mention in #cursive that he wants to add LSP support to Cursive, I really hope this will land someday

Feel free to create issues about it, me and @arthurfucher are actively working on those plugins this year

👍 1

@ericdallo this is not related to LSP, but since Cursive can't work together with LSP I'm curious if there's a way to have Parinfer enabled w/o Cursive?

no, clojure-lsp already has paredit support, so it's a low priority add support for parinfer, you can create a issue to track that and help prioritize tho

👍 1