mirror of
https://github.com/neovim/neovim.git
synced 2026-06-18 09:41:17 +00:00
fix(lua): fields of nvim.spellfile.Opts are optional #39902
(cherry picked from commit ea8f1463dd)
This commit is contained in:
committed by
github-actions[bot]
parent
c8e0af85e0
commit
b0bfce290f
@@ -196,13 +196,13 @@ The plugin can be disabled by setting `g:loaded_spellfile_plugin = 1`.
|
|||||||
A table with the following fields:
|
A table with the following fields:
|
||||||
|
|
||||||
Fields: ~
|
Fields: ~
|
||||||
• {confirm} (`boolean`, default: `true`) Whether to ask user to
|
• {confirm}? (`boolean`, default: `true`) Whether to ask user to
|
||||||
confirm download.
|
confirm download.
|
||||||
• {timeout_ms} (`integer`, default: 15000) Number of milliseconds after
|
• {timeout_ms}? (`integer`, default: 15000) Number of milliseconds
|
||||||
which the |vim.net.request()| times out.
|
after which the |vim.net.request()| times out.
|
||||||
• {url} (`string`) The base URL from where the spellfiles are
|
• {url}? (`string`) The base URL from where the spellfiles are
|
||||||
downloaded. Uses `g:spellfile_URL` if it's set,
|
downloaded. Uses `g:spellfile_URL` if it's set,
|
||||||
otherwise https://ftp.nluug.nl/pub/vim/runtime/spell.
|
otherwise https://ftp.nluug.nl/pub/vim/runtime/spell.
|
||||||
|
|
||||||
|
|
||||||
config({opts}) *spellfile.config()*
|
config({opts}) *spellfile.config()*
|
||||||
|
|||||||
@@ -20,15 +20,15 @@ local M = {}
|
|||||||
---
|
---
|
||||||
--- The base URL from where the spellfiles are downloaded. Uses `g:spellfile_URL`
|
--- 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.
|
--- 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.
|
--- Number of milliseconds after which the [vim.net.request()] times out.
|
||||||
--- (default: 15000)
|
--- (default: 15000)
|
||||||
--- @field timeout_ms integer
|
--- @field timeout_ms? integer
|
||||||
---
|
---
|
||||||
--- Whether to ask user to confirm download.
|
--- Whether to ask user to confirm download.
|
||||||
--- (default: `true`)
|
--- (default: `true`)
|
||||||
--- @field confirm boolean
|
--- @field confirm? boolean
|
||||||
|
|
||||||
--- @type nvim.spellfile.Opts
|
--- @type nvim.spellfile.Opts
|
||||||
local config = {
|
local config = {
|
||||||
|
|||||||
Reference in New Issue
Block a user