Skip to content

Commit f517b49

Browse files
committed
☕ fix example
1 parent a71cc3d commit f517b49

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

example/client.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ let s:root = expand('<sfile>:h')
22
let s:server = join([s:root, 'server.ts'], has('win32') ? '\' : '/')
33

44
function! s:start_server() abort
5-
call job_start(['deno', 'run', '-A', '--unstable', s:server], {
5+
call job_start(['deno', 'run', '-A', s:server], {
66
\ 'mode': 'json',
77
\ 'err_mode': 'nl',
88
\ 'err_cb': funcref('s:err_cb'),

example/server.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ session.start();
1010
const client = new Client(session);
1111

1212
console.warn("Invoke 'ex' command to open a new buffer");
13-
client.ex("new");
13+
await client.ex("new");
1414

1515
console.warn("Invoke 'normal' command to input 'Hello from Deno'");
16-
client.normal("iHello from Deno\\<Esc>");
16+
await client.normal("iHello from Deno");
1717

1818
console.warn("Invoke 'redraw' command to refresh the screen");
19-
client.redraw();
19+
await client.redraw();
2020

2121
console.warn("Invoke 'expr' command and wait for the result");
2222
console.warn(await client.expr("v:version"));
2323

2424
console.warn("Invoke 'expr' command");
25-
client.exprNoReply("v:version");
25+
await client.exprNoReply("v:version");
2626

2727
console.warn("Invoke 'call' command and wait for the result");
2828
console.warn(await client.call("getcwd"));
2929

3030
console.warn("Invoke 'call' command");
31-
client.callNoReply("getcwd");
31+
await client.callNoReply("getcwd");
3232

3333
console.warn("Invoke 'ex' command to wipeout the buffer");
34-
client.ex("bwipeout!");
34+
await client.ex("bwipeout!");
3535

3636
await session.shutdown();
3737
console.warn("Session has terminated");

0 commit comments

Comments
 (0)