Skip to main content
Latest
function fn.digraph_getlist
import { fn } from "https://deno.land/x/denops_lsputil@v0.9.4/deps.ts";
const { digraph_getlist } = fn;

Return a list of digraphs. If the {listall} argument is given and it is TRUE, return all digraphs, including the default digraphs. Otherwise, return only user-defined digraphs.

The characters will be converted from Unicode to 'encoding' when needed. This does require the conservation to be available, it might fail.

Also see digraph_get().

Examples:

" Get user-defined digraphs
:echo digraph_getlist()

" Get all the digraphs, including default digraphs
:echo digraph_getlist(1)

Can also be used as a method:

GetNumber()->digraph_getlist()

This function works only when compiled with the +digraphs feature. If this feature is disabled, this function will display an error message.

Parameters

denops: Denops
optional
listall: unknown

Returns

Promise<unknown[]>