Skip to content

Commit 721afd5

Browse files
committed
deno fmt
1 parent 9aba6b9 commit 721afd5

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ Use one of the following commands to test the features:
1313
| `DenopsHelloWorldEcho` | Echo a text which is constructed in Deno plugin |
1414
| `DenopsHelloWorldSay` | Interactively construct text in Deno plugin and echo |
1515

16-
Or use `denops#request({plugin-name}, {fn}, {params})` to call a function and get the result like
16+
Or use `denops#request({plugin-name}, {fn}, {params})` to call a function and
17+
get the result like
1718

1819
```
1920
echo denops#request("helloworld", "echo", ["Hello"])
2021
call denops#request("helloworld", "echo", []) " This will raise exception
2122
```
2223

23-
Or use `denops#notify({plugin-name}, {fn}, {params})` to call a function and leave like
24+
Or use `denops#notify({plugin-name}, {fn}, {params})` to call a function and
25+
leave like
2426

2527
```
2628
call denops#notify("helloworld", "say", ["Hello"])

denops/helloworld/mod.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Denops.start(async function (denops: Denops): Promise<void> {
77
async echo(text: unknown): Promise<unknown> {
88
if (typeof text !== "string") {
99
throw new Error(
10-
`'text' in 'echo()' of ${denops.name} must be a string`
10+
`'text' in 'echo()' of ${denops.name} must be a string`,
1111
);
1212
}
1313
return await Promise.resolve(text);
@@ -21,18 +21,18 @@ Denops.start(async function (denops: Denops): Promise<void> {
2121
const version = await denops.eval("v:version");
2222
await denops.command("redraw");
2323
await denops.command(
24-
`echomsg 'Hello ${name}. Your are using ${app} in Vim/Neovim ${version}'`
24+
`echomsg 'Hello ${name}. Your are using ${app} in Vim/Neovim ${version}'`,
2525
);
2626
},
2727
});
2828

2929
// Add command
3030
await denops.command(
31-
`command! DenopsHelloWorldEcho echo denops#request("${denops.name}", "echo", ["This is hello world message"])`
31+
`command! DenopsHelloWorldEcho echo denops#request("${denops.name}", "echo", ["This is hello world message"])`,
3232
);
3333

3434
await denops.command(
35-
`command! DenopsHelloWorldSay echo denops#notify("${denops.name}", "say", ["Denops"])`
35+
`command! DenopsHelloWorldSay echo denops#notify("${denops.name}", "say", ["Denops"])`,
3636
);
3737

3838
console.log("denops-helloworld.vim has loaded");

0 commit comments

Comments
 (0)