Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.digraph_setlist

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.digraph_setlist
import { fn } from "https://deno.land/x/ddc_vim@v3.8.0/deps.ts";
const { digraph_setlist } = fn;

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>