@@ -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)
1211endfunction
1312command! -nargs=? Connect call Connect("<args>", "connect")
1413command! -nargs=? NConnect call Connect("<args>", "connect-nrepl")
1514
1615function! 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', [])
2018endfunction
2119command! EvalBuffer call EvalBuffer()
2220
2321function! 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', [])
2724endfunction
2825command! EvalCode call EvalCode()
2926
3027function! 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)
3329endfunction
3430command! ReplLog call ReplLog(':botright new')
3531
3632function! 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', [])
3934endfunction
4035command! DismissReplLog call DismissReplLog()
4136
4237function! 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', [])
4640endfunction
4741command! Doc call Doc()
4842
0 commit comments