-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65b1fc3
commit 32b483f
Showing
9 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { Denops } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { load } from "https://deno.land/x/[email protected]/helper/mod.ts"; | ||
import type { Entrypoint, Denops, load } from "jsr:@denops/[email protected]"; | ||
import type { load } from "jsr:@denops/[email protected]/helper"; | ||
import { | ||
backQuote, | ||
backSpaceEnter, | ||
|
@@ -13,7 +13,7 @@ import { | |
surroundBrackets, | ||
} from "./mod/mod.ts"; | ||
|
||
export async function main(denops: Denops): Promise<void> { | ||
export const main: Entrypoint = (denops: Denops) => { | ||
denops.dispatcher = { | ||
async kakkonanCompletion(inputBrackets: unknown): Promise<string> { | ||
if (typeof inputBrackets !== "string") { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Vim } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import type { Vim } from "jsr:@denops/[email protected]"; | ||
import { getLineChar } from "./getLineChar.ts"; | ||
import { brackets } from "./brackets.ts"; | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Denops } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import type { Denops } from "jsr:@denops/[email protected]"; | ||
import { getLineChar } from "./getLineChar.ts"; | ||
import { backQuote, brackets, quotes } from "./brackets.ts"; | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { Denops } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { execute } from "https://deno.land/x/[email protected]/helper/mod.ts"; | ||
import type { Denops } from "jsr:@denops/[email protected]"; | ||
import { execute } from "jsr:@denops/[email protected]/helper"; | ||
|
||
export async function customSurroundBrackets( | ||
vim: Denops, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Denops } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import type { Denops } from "jsr:@denops/[email protected]"; | ||
import { backQuote, brackets, quotes } from "./brackets.ts"; | ||
|
||
export async function deleteBrackets(vim: Denops): Promise<void> { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Denops } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import type { Denops } from "jsr:@denops/[email protected]"; | ||
import { getLineChar } from "./getLineChar.ts"; | ||
import { backQuote, brackets, quotes } from "./brackets.ts"; | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Denops } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import type { Denops } from "jsr:@denops/[email protected]"; | ||
|
||
export async function getLineChar(vim: Denops, diff: number): Promise<string> { | ||
const cursorStr = await vim.call("getline", ".") as string; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Denops } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import type { Denops } from "jsr:@denops/[email protected]"; | ||
import { backQuote, brackets, quotes } from "./brackets.ts"; | ||
|
||
export async function replaceBrackets( | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { Denops } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { execute } from "https://deno.land/x/[email protected]/helper/mod.ts"; | ||
import type { Denops } from "jsr:@denops/[email protected]"; | ||
import { execute } from "jsr:@denops/[email protected]/helper"; | ||
import { brackets } from "./brackets.ts"; | ||
|
||
export async function surroundBrackets( | ||
|