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