fix: added functions inside vim

This commit is contained in:
əlemi 2022-07-16 03:46:43 +02:00
parent 89588d7a8c
commit d5a551c76c

View file

@ -88,6 +88,18 @@ function codemp#test()
call rpcrequest(s:jobid, "rpc") call rpcrequest(s:jobid, "rpc")
endfunction endfunction
function codemp#create(k)
call rpcrequest(s:jobid, "create", a:k)
endfunction
function codemp#sync(k)
call rpcrequest(s:jobid, "sync", a:k)
endfunction
function codemp#leave(k)
call rpcrequest(s:jobid, "leave", a:k)
endfunction
function s:OnStderr(id, data, event) dict function s:OnStderr(id, data, event) dict
let g:msg = 'codemp: stderr: ' . join(a:data, "\n") let g:msg = 'codemp: stderr: ' . join(a:data, "\n")
echo g:msg echo g:msg