nvim_runtime_lua

nvim.spellfile

Methods2

function M.config(opts: nvim.spellfile.Opts | nil) -> nvim.spellfile.Opts | nil

Configure spellfile download options. For example:

require('nvim.spellfile').config({ url = '...' })
Parameters
optsnvim.spellfile.Opts | nil

When omitted or nil, retrieve the current configuration. Otherwise, a configuration table.

Returns
nvim.spellfile.Opts | nil

: Current config if {opts} is omitted.

function M.get(lang: string) -> nvim.spellfile.Info | nil

Download spellfiles for language {lang} if available.

Parameters
langstring

Language code.

Returns

Fields1

M._done : {string, boolean}

TODO(justinmk): add ondone/onerr callbacks to download(), instead of exposing this?