Skip to content

Commit fc747aa

Browse files
Move injected cli to before init-opt
This stops you from passing -m, but allows aliases.
1 parent daca517 commit fc747aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/jack_in.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function! jack_in#lein(...)
4545
endfunction
4646

4747
function! jack_in#clj(...)
48-
let l:clj_string = 'clj -Sdeps'
48+
let l:clj_string = 'clj'
4949
let l:deps_map = '{:deps {'
5050
let l:cider_opts = '-e ''(require (quote cider-nrepl.main)) (cider-nrepl.main/init ['
5151

@@ -57,7 +57,7 @@ function! jack_in#clj(...)
5757
let l:deps_map .= '}}'
5858
let l:cider_opts .= '])'''
5959

60-
let l:command = l:clj_string . ' ''' . l:deps_map . ''' ' . l:cider_opts . ' ' . join(a:000, ' ')
60+
let l:command = l:clj_string . ' ' . join(a:000, ' ') . ' -Sdeps ''' . l:deps_map . ''' ' . l:cider_opts . ' '
6161

6262
call s:RunRepl(l:command)
6363
endfunction

0 commit comments

Comments
 (0)