Created
December 13, 2022 07:26
-
-
Save 4513ECHO/adbcb743e482920023406b8b4c28e11a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { Denops } from "https://deno.land/x/[email protected]/mod.ts"; | |
import { batch } from "https://deno.land/x/[email protected]/batch/mod.ts"; | |
import { modifiable } from "https://deno.land/x/[email protected]/buffer/mod.ts"; | |
export function main(denops: Denops): void { | |
denops.dispatcher = { | |
async modifiableTest(): Promise<void> { | |
await batch(denops, async (denops) => { | |
await modifiable( | |
denops, | |
await denops.call("bufnr") as number, | |
() => Promise.resolve(), | |
); | |
}); | |
}, | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment