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

x/ddc_vim/deps.ts>fn.soundfold

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.soundfold
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { soundfold } = fn;

Return the sound-folded equivalent of {word}. Uses the first language in 'spelllang' for the current window that supports soundfolding. 'spell' must be set. When no sound folding is possible the {word} is returned unmodified. This can be used for making spelling suggestions. Note that the method can be quite slow.

Can also be used as a method:

GetWord()->soundfold()

Parameters

denops: Denops
word: unknown

Returns

Promise<string>