nvim_runtime_lua

vim._core.spell

Methods1

function M.select_suggest(items: vim._core.spell.Suggestion[], bad: string) -> nil

Implements spell_suggest() (z=) via vim.ui.select().

async: returns immediately, the chosen suggestion is applied later by re-running :normal! [idx]z= from on_choice.

Parameters
badstring

The misspelled word being replaced.

Returns
nil