Skip to main content
Module

x/denops_std/function/mod.ts>digraph_setlist

📚 Standard module for denops.vim
Go to Latest
function digraph_setlist
import { digraph_setlist } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

Similar to digraph_set() but this function can add multiple digraphs at once. {digraphlist} is a list composed of lists, where each list contains two strings with {chars} and {digraph} as in digraph_set(). Example:

call digraph_setlist([['aa', 'あ'], ['ii', 'い']])

It is similar to the following:

for [chars, digraph] in [['aa', 'あ'], ['ii', 'い']]
      call digraph_set(chars, digraph)
endfor

Except that the function returns after the first error, following digraphs will not be added.

Can be used as a method:

GetList()->digraph_setlist()

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
digraphlist: unknown

Returns

Promise<boolean>