rewrite-clj

2022-06-05T20:12:20.926009Z

Potentially silly question: i am working on an editor plugin for vim to interface with clojure-lsp, but i want to expose some more generally useful functionality to it that might be too specific for clojure-lsp. It’s written in typescript and instead of handwriting a parser, it seems prudent to rely on rewrite-clj compiled to javascript. Is this ridiculous? Yes lol. But is it feasible?

lread 2022-06-05T20:14:58.353729Z

Heya! Rewrite-clj does support ClojureScript. I don’t have experience in calling cljs libs form typescript, but I think folks do this. Maybe somebody with experience there can chime in.

👍 1
🎉 1
snoe 2022-06-05T20:40:41.806319Z

thats basically what i did for clj-refactor.nvim, it was pretty painful then but I think a lot more work has been put into non browser cljs since https://github.com/clojure-vim/clj-refactor.nvim

❤️ 1
😮 1
2022-06-05T20:41:13.336419Z

Woah, didn’t know that existed! Maybe I'll just point folks to your plug-in