Skip to main content

Built and signed on GitHub Actions

Development ddc.vim helpers that allow you to paste word-kind sources gathering unprintable characters.

This package works with Deno
This package works with Deno
JSR Score
64%
Published
2 months ago (4.0.0)
class Unprintable
implements Required<Omit<UnprintableOptions, "callbackId">>

Constructors

new
Unprintable(opts?: UnprintableOptions)

Type Parameters

Properties

Methods

convertItems(
denops: Denops,
items: Item<UserData>[],
nextInput: string,
): Promise<Item<UserData>[]>

Should convert items by this in BaseSource.gather().

If Item.word contains unprintable characters, it will be converted to UnprintableOptions.placeholder. Item.abbr and Item.highlights are generated and added.

onCompleteDone(args: { denops: Denops; onCallback: OnCallback; userData: UserData; context: Context; }): Promise<void>

Should call this in BaseSource.onCompleteDone().

onInit(args: { denops: Denops; }): Promise<void>

Should call this in BaseSource.onInit().

Add Package

deno add @milly/ddc-unprintable

Import symbol

import { Unprintable } from "@milly/ddc-unprintable";

---- OR ----

Import directly with a jsr specifier

import { Unprintable } from "jsr:@milly/ddc-unprintable";