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 | nilWhen 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
langstringLanguage code.
Returns
- nvim.spellfile.Info | nil
Fields1
M._done : {string, boolean}
TODO(justinmk): add ondone/onerr callbacks to download(), instead of exposing this?