Skip to content

Commit

Permalink
Use ddu.vim version 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 29, 2024
1 parent bcebbbb commit f08122b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
4 changes: 2 additions & 2 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "@shougo/ddu-ui-filer",
"version": "0.0.0",
"exports": {
".": "./denops/@ddu-uis/filer.ts",
".": "./denops/@ddu-uis/filer.ts"
},
"publish": {
"include": [
"denops/@ddu-uis/**/*.ts",
"denops/@ddu-uis/**/*.ts"
]
},
"imports": {
Expand Down
30 changes: 15 additions & 15 deletions denops/@ddu-uis/filer.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import {
ActionFlags,
type BaseActionParams,
BaseUi,
type BaseParams,
type Context,
type DduItem,
type DduOptions,
type Denops,
type PreviewContext,
type Previewer,
type SourceInfo,
type UiActions,
type UiOptions,
} from "jsr:@shougo/ddu-vim@~5.0.0/types";
} from "jsr:@shougo/ddu-vim@~6.0.0/types";
import { BaseUi, type UiActions } from "jsr:@shougo/ddu-vim@~6.0.0/ui";
import {
printError,
treePath2Filename,
} from "jsr:@shougo/ddu-vim@~5.0.0/utils";

import { batch } from "jsr:@denops/std@~7.0.0/batch";
import * as op from "jsr:@denops/std@~7.0.0/option";
import * as fn from "jsr:@denops/std@~7.0.0/function";
import * as vars from "jsr:@denops/std@~7.0.0/variable";
import { equal } from "jsr:@std/assert@~1.0.0";
import { is } from "jsr:@core/unknownutil@~4.0.0";
import { SEPARATOR as pathsep } from "jsr:@std/path@~1.0.1";
import { extname } from "jsr:@std/path@~1.0.0";
import type { Denops } from "jsr:@denops/std@~7.1.0";
import { batch } from "jsr:@denops/std@~7.1.0/batch";
import * as op from "jsr:@denops/std@~7.1.0/option";
import * as fn from "jsr:@denops/std@~7.1.0/function";
import * as vars from "jsr:@denops/std@~7.1.0/variable";

import { equal } from "jsr:@std/assert@~1.0.0/equal";
import { is } from "jsr:@core/unknownutil@~4.3.0/is";
import { SEPARATOR as pathsep } from "jsr:@std/path@~1.0.1/constants";
import { extname } from "jsr:@std/path@~1.0.0/extname";

import { PreviewUi } from "./filer/preview.ts";

Expand Down Expand Up @@ -864,7 +864,7 @@ export class Ui extends BaseUi<Params> {
getPreviewer?: (
denops: Denops,
item: DduItem,
actionParams: BaseActionParams,
actionParams: BaseParams,
previewContext: PreviewContext,
) => Promise<Previewer | undefined>;
}) => {
Expand Down Expand Up @@ -987,7 +987,7 @@ export class Ui extends BaseUi<Params> {
getPreviewer?: (
denops: Denops,
item: DduItem,
actionParams: BaseActionParams,
actionParams: BaseParams,
previewContext: PreviewContext,
) => Promise<Previewer | undefined>;
}) => {
Expand Down
24 changes: 13 additions & 11 deletions denops/@ddu-uis/filer/preview.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
import {
ActionFlags,
type BaseActionParams,
type BaseParams,
type BufferPreviewer,
type Context,
type DduItem,
type Denops,
type NoFilePreviewer,
type PreviewContext,
type Previewer,
type TerminalPreviewer,
} from "jsr:@shougo/ddu-vim@~5.0.0/types";
} from "jsr:@shougo/ddu-vim@~6.0.0/types";

import { batch } from "jsr:@denops/std@~7.0.0/batch";
import * as fn from "jsr:@denops/std@~7.0.0/function";
import { equal } from "jsr:@std/assert@~1.0.0";
import { replace } from "jsr:@denops/std@~7.0.0/buffer";
import { ensure, is } from "jsr:@core/unknownutil@~4.0.0";
import type { Denops } from "jsr:@denops/std@~7.1.0";
import { batch } from "jsr:@denops/std@~7.1.0/batch";
import * as fn from "jsr:@denops/std@~7.1.0/function";

import { equal } from "jsr:@std/assert@~1.0.0/equal";
import { replace } from "jsr:@denops/std@~7.1.0/buffer";
import { ensure } from "jsr:@core/unknownutil@~4.3.0/ensure";
import { is } from "jsr:@core/unknownutil@~4.3.0/is";

import type { Params } from "../filer.ts";

Expand Down Expand Up @@ -91,13 +93,13 @@ export class PreviewUi {
denops: Denops,
context: Context,
uiParams: Params,
actionParams: unknown,
actionParams: BaseParams,
bufnr: number,
item: DduItem,
getPreviewer?: (
denops: Denops,
item: DduItem,
actionParams: BaseActionParams,
actionParams: BaseParams,
previewContext: PreviewContext,
) => Promise<Previewer | undefined>,
): Promise<ActionFlags> {
Expand All @@ -119,7 +121,7 @@ export class PreviewUi {
const previewer = await getPreviewer(
denops,
item,
actionParams as BaseActionParams,
actionParams,
previewContext,
);

Expand Down

0 comments on commit f08122b

Please sign in to comment.