Default to nrepl protocol
This commit is contained in:
parent
94ff1464a4
commit
5ff2eeae1c
@ -335,6 +335,8 @@ endfunction
|
||||
function! s:Connect(...) abort
|
||||
if (a:0 ? a:1 : '') =~# '^\w\+://'
|
||||
let [proto, arg] = split(a:1, '://')
|
||||
elseif (a:0 ? a:1 : '') =~# '^\%([[:alnum:].-]\+:\)\=\d\+$'
|
||||
let [proto, arg] = ['nrepl', a:1]
|
||||
elseif a:0
|
||||
return 'echoerr '.string('Usage: :Connect proto://...')
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user