Skip to main content
Module

x/ddc_vim/deps.ts>fn.spellsuggest

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

Return a |List| with spelling suggestions to replace {word}. When {max} is given up to this number of suggestions are returned. Otherwise up to 25 suggestions are returned. When the {capital} argument is given and it's non-zero only suggestions with a leading capital will be given. Use this after a match with 'spellcapcheck'. {word} can be a badly spelled word followed by other text. This allows for joining two words that were split. The suggestions also include the following text, thus you can replace a line. {word} may also be a good word. Similar words will then be returned. {word} itself is not included in the suggestions, although it may appear capitalized. The spelling information for the current window is used. The values of 'spelllang' and 'spellsuggest' are used. Can also be used as a |method|: GetWord()->spellsuggest()

Parameters

denops: Denops
word: unknown
optional
max: unknown
optional
capital: unknown

Returns

Promise<unknown>