clojure-vim / vim-jack-in

cider-jack-in for vim
57 stars 8 forks source link

Support windows (cmd.exe) #14

Open SuperCuber opened 2 months ago

SuperCuber commented 2 months ago

The command generation in this part of the code: https://github.com/clojure-vim/vim-jack-in/blob/7fed7961a8b59265dc34c27c4cdbc410b3c25a73/autoload/jack_in.vim#L46 uses single quotes which don't properly work on Windows.

I only tried :Lein, but a successful command for Windows looks like:

lein update-in :dependencies conj "[refactor-nrepl/refactor-nrepl \"3.6.0\"]" -- update-in :repl-options:nrepl-middleware conj refactor-nrepl.middleware/wrap-refactor -- update-in :plugins conj "[cider/cider-nrepl \"0.30.0\"]" -- repl

I think this command should also work on unix shells.

I would make a PR but I definitely do not know my way around vimscript well enough 🙃 for now I'll hard-code this into my config