lsp

Roman Liutikov 2025-01-28T21:57:23.564449Z

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

ericdallo 2025-01-28T22:13:19.838599Z

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

Roman Liutikov 2025-01-28T22:32:52.442369Z

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.

ericdallo 2025-01-28T22:33:34.590369Z

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

👍 1
Roman Liutikov 2025-01-28T22:33:55.527569Z

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

👍 1
mitchelkuijpers 2025-01-29T08:17:57.588919Z

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

Roman Liutikov 2025-01-29T08:21:01.469089Z

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

mitchelkuijpers 2025-01-29T08:31:05.823939Z

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

Roman Liutikov 2025-01-29T09:58:20.442619Z

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

ericdallo 2025-01-29T13:03:56.714279Z

not compatible indeed

ericdallo 2025-01-29T13:04:17.326599Z

you can use in intellij https://github.com/clojure-lsp/clojure-lsp-intellij and https://github.com/afucher/clojure-repl-intellij tho

Roman Liutikov 2025-01-29T13:22:39.787989Z

yeah unfortunately UX is not there when compared to Cursive

Roman Liutikov 2025-01-29T13:24:00.196269Z

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

ericdallo 2025-01-29T13:24:34.432549Z

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

👍 1
Roman Liutikov 2025-01-29T13:41:18.684009Z

@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?

ericdallo 2025-01-29T13:50:34.619169Z

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