Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion batch/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* import { batch, collect } from "jsr:@denops/std/batch";
*
* export const main: Entrypoint = async (denops) => {
* // Call multiple denops functions sequentially in a signle RPC call
* // Call multiple denops functions sequentially in a single RPC call
* await batch(denops, async (denops) => {
* await denops.cmd("setlocal modifiable");
* await denops.cmd("setlocal noswap");
Expand Down
2 changes: 1 addition & 1 deletion buffer/decoration_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ test({
type_bufnr: 0,
}]);

// Re-appling the same decorations is OK
// Re-applying the same decorations is OK
await decorate(denops, bufnr, [
{
line: 1,
Expand Down
4 changes: 2 additions & 2 deletions bufname/bufname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface Bufname {
*/
expr: string;
/**
* Params part of a buffer name. While '?' is not supported, the params part are splitted by ';' instead.
* Params part of a buffer name. While '?' is not supported, the params part are split by ';' instead.
*/
params?: BufnameParams;
/**
Expand All @@ -64,7 +64,7 @@ export interface Bufname {
}

// Vim only supports alphabet characters in the scheme part of a buffer name.
// That behavior has slightly improved from Vim 8.2.3153 but we suppor Vim 8.2.0662
// That behavior has slightly improved from Vim 8.2.3153 but we support Vim 8.2.0662
// thus we need to stack old behavior
// https://github.com/vim/vim/pull/8299
const schemeUnusablePattern = /[^a-zA-Z]/;
Expand Down
2 changes: 1 addition & 1 deletion helper/keymap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function toKeys(keys: KeysSpecifier): Keys {
* // "baz"
* console.log(await fn.getline(denops, "."));
*
* // Send remaped keys.
* // Send remapped keys.
* await send(denops, { keys: rawString`\<C-l>`, remap: true });
* // "bazsend"
* console.log(await fn.getline(denops, "."));
Expand Down
2 changes: 1 addition & 1 deletion lambda/mod_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ test({
"The method is unregistered",
);
});
await t.step("is diposable", async () => {
await t.step("is disposable", async () => {
// Unregister all methods
denops.dispatcher = {};
const fn = spy(returnsNext(["foo"]));
Expand Down
30 changes: 15 additions & 15 deletions option/_generated_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test({
},
});
await t.step({
name: "dictionary.get() return the defautValue when the option is empty",
name: "dictionary.get() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("set dictionary&");
assertEquals(await _generated.dictionary.get(denops), "");
Expand Down Expand Up @@ -54,7 +54,7 @@ test({
});
await t.step({
name:
"dictionary.getGlobal() return the defautValue when the option is empty",
"dictionary.getGlobal() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("setglobal dictionary&");
await denops.cmd("setlocal dictionary=hello");
Expand Down Expand Up @@ -92,7 +92,7 @@ test({
});
await t.step({
name:
"dictionary.getLocal() return the defautValue when the option is empty",
"dictionary.getLocal() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("setglobal dictionary=hello");
await denops.cmd("setlocal dictionary&");
Expand Down Expand Up @@ -140,7 +140,7 @@ test({
});
await t.step({
name:
"dictionary.getBuffer() return the defautValue when the option is empty",
"dictionary.getBuffer() return the defaultValue when the option is empty",
fn: async () => {
try {
const bufnr = await denops.call("bufnr") as number;
Expand Down Expand Up @@ -196,7 +196,7 @@ test({
});
await t.step({
name:
"colorcolumn.getWindow() return the defautValue when the option is empty",
"colorcolumn.getWindow() return the defaultValue when the option is empty",
fn: async () => {
try {
await denops.cmd("setlocal colorcolumn&");
Expand Down Expand Up @@ -241,7 +241,7 @@ test({
},
});
await t.step({
name: "undolevels.get() return the defautValue when the option is empty",
name: "undolevels.get() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("set undolevels&");
assertEquals(await _generated.undolevels.get(denops), 1000);
Expand Down Expand Up @@ -274,7 +274,7 @@ test({
});
await t.step({
name:
"undolevels.getGlobal() return the defautValue when the option is empty",
"undolevels.getGlobal() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("setglobal undolevels&");
await denops.cmd("setlocal undolevels=123");
Expand Down Expand Up @@ -312,7 +312,7 @@ test({
});
await t.step({
name:
"undolevels.getLocal() return the defautValue when the option is empty",
"undolevels.getLocal() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("setglobal undolevels=123");
await denops.cmd("setlocal undolevels&");
Expand Down Expand Up @@ -360,7 +360,7 @@ test({
});
await t.step({
name:
"undolevels.getBuffer() return the defautValue when the option is empty",
"undolevels.getBuffer() return the defaultValue when the option is empty",
fn: async () => {
try {
const bufnr = await denops.call("bufnr") as number;
Expand Down Expand Up @@ -413,7 +413,7 @@ test({
});
await t.step({
name:
"foldlevel.getWindow() return the defautValue when the option is empty",
"foldlevel.getWindow() return the defaultValue when the option is empty",
fn: async () => {
try {
await denops.cmd("setlocal foldlevel&");
Expand Down Expand Up @@ -455,7 +455,7 @@ test({
},
});
await t.step({
name: "autoread.get() return the defautValue when the option is empty",
name: "autoread.get() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("set autoread&");
if (await denops.call("has", "nvim")) {
Expand Down Expand Up @@ -496,7 +496,7 @@ test({
});
await t.step({
name:
"autoread.getGlobal() return the defautValue when the option is empty",
"autoread.getGlobal() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("setglobal autoread&");
await denops.cmd("setlocal autoread& autoread!");
Expand Down Expand Up @@ -543,7 +543,7 @@ test({
});
await t.step({
name:
"autoread.getLocal() return the defautValue when the option is empty",
"autoread.getLocal() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("setglobal autoread& autoread!");
await denops.cmd("setlocal autoread&");
Expand Down Expand Up @@ -600,7 +600,7 @@ test({
});
await t.step({
name:
"autoread.getBuffer() return the defautValue when the option is empty",
"autoread.getBuffer() return the defaultValue when the option is empty",
fn: async () => {
try {
const bufnr = await denops.call("bufnr") as number;
Expand Down Expand Up @@ -656,7 +656,7 @@ test({
},
});
await t.step({
name: "list.getWindow() return the defautValue when the option is empty",
name: "list.getWindow() return the defaultValue when the option is empty",
fn: async () => {
try {
await denops.cmd("setlocal list&");
Expand Down
4 changes: 2 additions & 2 deletions popup/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* title: "Hello, world!",
* });
*
* // Wiat 3 seconds
* // Wait 3 seconds
* await new Promise((resolve) => setTimeout(resolve, 3000));
*
* // Close the popup window
Expand Down Expand Up @@ -64,7 +64,7 @@
* col: 1,
* });
*
* // Wiat 3 seconds
* // Wait 3 seconds
* await new Promise((resolve) => setTimeout(resolve, 3000));
*
* // The popup window is automatically closed, due to `await using` statement
Expand Down
6 changes: 3 additions & 3 deletions variable/option_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test({
},
});
await t.step({
name: "options.get() return the defautValue when the option is empty",
name: "options.get() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("set filetype&");
const result = await options.get(
Expand Down Expand Up @@ -66,7 +66,7 @@ test({
});
await t.step({
name:
"localOptions.get() return the defautValue when the option is empty",
"localOptions.get() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("set filetype&");
const result = await localOptions.get(
Expand Down Expand Up @@ -114,7 +114,7 @@ test({
});
await t.step({
name:
"globalOptions.get() return the defautValue when the option is empty",
"globalOptions.get() return the defaultValue when the option is empty",
fn: async () => {
await denops.cmd("set filetype&");
const result = await globalOptions.get(
Expand Down
Loading