diff --git a/runtime/doc/plugins.txt b/runtime/doc/plugins.txt index b619f5d3ce..b0ee277a12 100644 --- a/runtime/doc/plugins.txt +++ b/runtime/doc/plugins.txt @@ -196,13 +196,13 @@ The plugin can be disabled by setting `g:loaded_spellfile_plugin = 1`. A table with the following fields: Fields: ~ - • {confirm} (`boolean`, default: `true`) Whether to ask user to - confirm download. - • {timeout_ms} (`integer`, default: 15000) Number of milliseconds after - which the |vim.net.request()| times out. - • {url} (`string`) The base URL from where the spellfiles are - downloaded. Uses `g:spellfile_URL` if it's set, - otherwise https://ftp.nluug.nl/pub/vim/runtime/spell. + • {confirm}? (`boolean`, default: `true`) Whether to ask user to + confirm download. + • {timeout_ms}? (`integer`, default: 15000) Number of milliseconds + after which the |vim.net.request()| times out. + • {url}? (`string`) The base URL from where the spellfiles are + downloaded. Uses `g:spellfile_URL` if it's set, + otherwise https://ftp.nluug.nl/pub/vim/runtime/spell. config({opts}) *spellfile.config()* diff --git a/runtime/lua/nvim/spellfile.lua b/runtime/lua/nvim/spellfile.lua index 5a33e7ee9e..8bf094ec34 100644 --- a/runtime/lua/nvim/spellfile.lua +++ b/runtime/lua/nvim/spellfile.lua @@ -20,15 +20,15 @@ local M = {} --- --- The base URL from where the spellfiles are downloaded. Uses `g:spellfile_URL` --- if it's set, otherwise https://ftp.nluug.nl/pub/vim/runtime/spell. ---- @field url string +--- @field url? string --- --- Number of milliseconds after which the [vim.net.request()] times out. --- (default: 15000) ---- @field timeout_ms integer +--- @field timeout_ms? integer --- --- Whether to ask user to confirm download. --- (default: `true`) ---- @field confirm boolean +--- @field confirm? boolean --- @type nvim.spellfile.Opts local config = {