Skip to content

Commit 161f0f0

Browse files
committed
Fix debug vimscript, use rpcnotify
1 parent 1600696 commit 161f0f0

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

plugin/socketrepl.vim.debug

+6-12
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,36 @@ function! Connect(host_colon_port, op_code)
77
else
88
let conn = a:host_colon_port
99
endif
10-
let res = rpcrequest(g:nvim_tcp_plugin_channel, a:op_code, conn)
11-
return res
10+
call rpcnotify(g:nvim_tcp_plugin_channel, a:op_code, conn)
1211
endfunction
1312
command! -nargs=? Connect call Connect("<args>", "connect")
1413
command! -nargs=? NConnect call Connect("<args>", "connect-nrepl")
1514

1615
function! EvalBuffer()
1716
ReplLog
18-
let res = rpcrequest(g:nvim_tcp_plugin_channel, 'eval-buffer', [])
19-
return res
17+
call rpcnotify(g:nvim_tcp_plugin_channel, 'eval-buffer', [])
2018
endfunction
2119
command! EvalBuffer call EvalBuffer()
2220

2321
function! EvalCode()
2422
ReplLog
25-
let res = rpcrequest(g:nvim_tcp_plugin_channel, 'eval-code', [])
26-
return res
23+
call rpcnotify(g:nvim_tcp_plugin_channel, 'eval-code', [])
2724
endfunction
2825
command! EvalCode call EvalCode()
2926

3027
function! ReplLog(buffer_cmd)
31-
let res = rpcrequest(g:nvim_tcp_plugin_channel, 'show-log', a:buffer_cmd)
32-
return res
28+
call rpcnotify(g:nvim_tcp_plugin_channel, 'show-log', a:buffer_cmd)
3329
endfunction
3430
command! ReplLog call ReplLog(':botright new')
3531

3632
function! DismissReplLog()
37-
let res = rpcrequest(g:nvim_tcp_plugin_channel, 'dismiss-log', [])
38-
return res
33+
call rpcnotify(g:nvim_tcp_plugin_channel, 'dismiss-log', [])
3934
endfunction
4035
command! DismissReplLog call DismissReplLog()
4136

4237
function! Doc()
4338
ReplLog
44-
let res = rpcrequest(g:nvim_tcp_plugin_channel, 'doc', [])
45-
return res
39+
call rpcnotify(g:nvim_tcp_plugin_channel, 'doc', [])
4640
endfunction
4741
command! Doc call Doc()
4842

0 commit comments

Comments
 (0)