Skip to content

Commit cf6f84f

Browse files
committed
☕ Fix typos
1 parent 9d814ea commit cf6f84f

File tree

8 files changed

+26
-26
lines changed

8 files changed

+26
-26
lines changed

batch/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* import { batch, collect } from "jsr:@denops/std/batch";
77
*
88
* export const main: Entrypoint = async (denops) => {
9-
* // Call multiple denops functions sequentially in a signle RPC call
9+
* // Call multiple denops functions sequentially in a single RPC call
1010
* await batch(denops, async (denops) => {
1111
* await denops.cmd("setlocal modifiable");
1212
* await denops.cmd("setlocal noswap");

buffer/decoration_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test({
6666
type_bufnr: 0,
6767
}]);
6868

69-
// Re-appling the same decorations is OK
69+
// Re-applying the same decorations is OK
7070
await decorate(denops, bufnr, [
7171
{
7272
line: 1,

bufname/bufname.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface Bufname {
5454
*/
5555
expr: string;
5656
/**
57-
* Params part of a buffer name. While '?' is not supported, the params part are splitted by ';' instead.
57+
* Params part of a buffer name. While '?' is not supported, the params part are split by ';' instead.
5858
*/
5959
params?: BufnameParams;
6060
/**
@@ -64,7 +64,7 @@ export interface Bufname {
6464
}
6565

6666
// Vim only supports alphabet characters in the scheme part of a buffer name.
67-
// That behavior has slightly improved from Vim 8.2.3153 but we suppor Vim 8.2.0662
67+
// That behavior has slightly improved from Vim 8.2.3153 but we support Vim 8.2.0662
6868
// thus we need to stack old behavior
6969
// https://github.com/vim/vim/pull/8299
7070
const schemeUnusablePattern = /[^a-zA-Z]/;

helper/keymap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function toKeys(keys: KeysSpecifier): Keys {
5252
* // "baz"
5353
* console.log(await fn.getline(denops, "."));
5454
*
55-
* // Send remaped keys.
55+
* // Send remapped keys.
5656
* await send(denops, { keys: rawString`\<C-l>`, remap: true });
5757
* // "bazsend"
5858
* console.log(await fn.getline(denops, "."));

lambda/mod_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ test({
390390
"The method is unregistered",
391391
);
392392
});
393-
await t.step("is diposable", async () => {
393+
await t.step("is disposable", async () => {
394394
// Unregister all methods
395395
denops.dispatcher = {};
396396
const fn = spy(returnsNext(["foo"]));

option/_generated_test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test({
1818
},
1919
});
2020
await t.step({
21-
name: "dictionary.get() return the defautValue when the option is empty",
21+
name: "dictionary.get() return the defaultValue when the option is empty",
2222
fn: async () => {
2323
await denops.cmd("set dictionary&");
2424
assertEquals(await _generated.dictionary.get(denops), "");
@@ -54,7 +54,7 @@ test({
5454
});
5555
await t.step({
5656
name:
57-
"dictionary.getGlobal() return the defautValue when the option is empty",
57+
"dictionary.getGlobal() return the defaultValue when the option is empty",
5858
fn: async () => {
5959
await denops.cmd("setglobal dictionary&");
6060
await denops.cmd("setlocal dictionary=hello");
@@ -92,7 +92,7 @@ test({
9292
});
9393
await t.step({
9494
name:
95-
"dictionary.getLocal() return the defautValue when the option is empty",
95+
"dictionary.getLocal() return the defaultValue when the option is empty",
9696
fn: async () => {
9797
await denops.cmd("setglobal dictionary=hello");
9898
await denops.cmd("setlocal dictionary&");
@@ -140,7 +140,7 @@ test({
140140
});
141141
await t.step({
142142
name:
143-
"dictionary.getBuffer() return the defautValue when the option is empty",
143+
"dictionary.getBuffer() return the defaultValue when the option is empty",
144144
fn: async () => {
145145
try {
146146
const bufnr = await denops.call("bufnr") as number;
@@ -196,7 +196,7 @@ test({
196196
});
197197
await t.step({
198198
name:
199-
"colorcolumn.getWindow() return the defautValue when the option is empty",
199+
"colorcolumn.getWindow() return the defaultValue when the option is empty",
200200
fn: async () => {
201201
try {
202202
await denops.cmd("setlocal colorcolumn&");
@@ -241,7 +241,7 @@ test({
241241
},
242242
});
243243
await t.step({
244-
name: "undolevels.get() return the defautValue when the option is empty",
244+
name: "undolevels.get() return the defaultValue when the option is empty",
245245
fn: async () => {
246246
await denops.cmd("set undolevels&");
247247
assertEquals(await _generated.undolevels.get(denops), 1000);
@@ -274,7 +274,7 @@ test({
274274
});
275275
await t.step({
276276
name:
277-
"undolevels.getGlobal() return the defautValue when the option is empty",
277+
"undolevels.getGlobal() return the defaultValue when the option is empty",
278278
fn: async () => {
279279
await denops.cmd("setglobal undolevels&");
280280
await denops.cmd("setlocal undolevels=123");
@@ -312,7 +312,7 @@ test({
312312
});
313313
await t.step({
314314
name:
315-
"undolevels.getLocal() return the defautValue when the option is empty",
315+
"undolevels.getLocal() return the defaultValue when the option is empty",
316316
fn: async () => {
317317
await denops.cmd("setglobal undolevels=123");
318318
await denops.cmd("setlocal undolevels&");
@@ -360,7 +360,7 @@ test({
360360
});
361361
await t.step({
362362
name:
363-
"undolevels.getBuffer() return the defautValue when the option is empty",
363+
"undolevels.getBuffer() return the defaultValue when the option is empty",
364364
fn: async () => {
365365
try {
366366
const bufnr = await denops.call("bufnr") as number;
@@ -413,7 +413,7 @@ test({
413413
});
414414
await t.step({
415415
name:
416-
"foldlevel.getWindow() return the defautValue when the option is empty",
416+
"foldlevel.getWindow() return the defaultValue when the option is empty",
417417
fn: async () => {
418418
try {
419419
await denops.cmd("setlocal foldlevel&");
@@ -455,7 +455,7 @@ test({
455455
},
456456
});
457457
await t.step({
458-
name: "autoread.get() return the defautValue when the option is empty",
458+
name: "autoread.get() return the defaultValue when the option is empty",
459459
fn: async () => {
460460
await denops.cmd("set autoread&");
461461
if (await denops.call("has", "nvim")) {
@@ -496,7 +496,7 @@ test({
496496
});
497497
await t.step({
498498
name:
499-
"autoread.getGlobal() return the defautValue when the option is empty",
499+
"autoread.getGlobal() return the defaultValue when the option is empty",
500500
fn: async () => {
501501
await denops.cmd("setglobal autoread&");
502502
await denops.cmd("setlocal autoread& autoread!");
@@ -543,7 +543,7 @@ test({
543543
});
544544
await t.step({
545545
name:
546-
"autoread.getLocal() return the defautValue when the option is empty",
546+
"autoread.getLocal() return the defaultValue when the option is empty",
547547
fn: async () => {
548548
await denops.cmd("setglobal autoread& autoread!");
549549
await denops.cmd("setlocal autoread&");
@@ -600,7 +600,7 @@ test({
600600
});
601601
await t.step({
602602
name:
603-
"autoread.getBuffer() return the defautValue when the option is empty",
603+
"autoread.getBuffer() return the defaultValue when the option is empty",
604604
fn: async () => {
605605
try {
606606
const bufnr = await denops.call("bufnr") as number;
@@ -656,7 +656,7 @@ test({
656656
},
657657
});
658658
await t.step({
659-
name: "list.getWindow() return the defautValue when the option is empty",
659+
name: "list.getWindow() return the defaultValue when the option is empty",
660660
fn: async () => {
661661
try {
662662
await denops.cmd("setlocal list&");

popup/mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* title: "Hello, world!",
3131
* });
3232
*
33-
* // Wiat 3 seconds
33+
* // Wait 3 seconds
3434
* await new Promise((resolve) => setTimeout(resolve, 3000));
3535
*
3636
* // Close the popup window
@@ -64,7 +64,7 @@
6464
* col: 1,
6565
* });
6666
*
67-
* // Wiat 3 seconds
67+
* // Wait 3 seconds
6868
* await new Promise((resolve) => setTimeout(resolve, 3000));
6969
*
7070
* // The popup window is automatically closed, due to `await using` statement

variable/option_test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test({
1818
},
1919
});
2020
await t.step({
21-
name: "options.get() return the defautValue when the option is empty",
21+
name: "options.get() return the defaultValue when the option is empty",
2222
fn: async () => {
2323
await denops.cmd("set filetype&");
2424
const result = await options.get(
@@ -66,7 +66,7 @@ test({
6666
});
6767
await t.step({
6868
name:
69-
"localOptions.get() return the defautValue when the option is empty",
69+
"localOptions.get() return the defaultValue when the option is empty",
7070
fn: async () => {
7171
await denops.cmd("set filetype&");
7272
const result = await localOptions.get(
@@ -114,7 +114,7 @@ test({
114114
});
115115
await t.step({
116116
name:
117-
"globalOptions.get() return the defautValue when the option is empty",
117+
"globalOptions.get() return the defaultValue when the option is empty",
118118
fn: async () => {
119119
await denops.cmd("set filetype&");
120120
const result = await globalOptions.get(

0 commit comments

Comments
 (0)