Special case :Require in cljs
This commit is contained in:
parent
766c8d6bc9
commit
226c5a0fd1
@ -948,7 +948,11 @@ augroup END
|
|||||||
" :Require {{{1
|
" :Require {{{1
|
||||||
|
|
||||||
function! s:Require(bang, ns) abort
|
function! s:Require(bang, ns) abort
|
||||||
|
if expand('%:e') ==# 'cljs'
|
||||||
|
let cmd = '(load-file '.s:str(tr(a:ns ==# '' ? fireplace#ns() : a:ns, '-.', '_/').'.cljs').')'
|
||||||
|
else
|
||||||
let cmd = ('(clojure.core/require '.s:qsym(a:ns ==# '' ? fireplace#ns() : a:ns).' :reload'.(a:bang ? '-all' : '').')')
|
let cmd = ('(clojure.core/require '.s:qsym(a:ns ==# '' ? fireplace#ns() : a:ns).' :reload'.(a:bang ? '-all' : '').')')
|
||||||
|
endif
|
||||||
echo cmd
|
echo cmd
|
||||||
try
|
try
|
||||||
call fireplace#session_eval(cmd)
|
call fireplace#session_eval(cmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user