aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2024-02-18 18:46:19 -0800
committerLewis Russell <me@lewisr.dev>2024-02-25 22:08:11 +0000
commit185752614d1a4906c8f218e4c24c3b52bbe6560e (patch)
treea64439517eb720779264b114f7ebb60c6a2886b5 /runtime/doc
parent0fcbda59871ebc5fc91cac7fa430a4a93f6698c2 (diff)
downloadrneovim-185752614d1a4906c8f218e4c24c3b52bbe6560e.tar.gz
rneovim-185752614d1a4906c8f218e4c24c3b52bbe6560e.tar.bz2
rneovim-185752614d1a4906c8f218e4c24c3b52bbe6560e.zip
refactor(types): fix miscellaneous type warnings
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lua.txt8
-rw-r--r--runtime/doc/treesitter.txt2
2 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 5285f0b1b5..94b37ad7c6 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -2509,7 +2509,7 @@ vim.ui.input({opts}, {on_confirm}) *vim.ui.input()*
<
Parameters: ~
- • {opts} (`table`) Additional options. See |input()|
+ • {opts} (`table?`) Additional options. See |input()|
• prompt (string|nil) Text of the prompt
• default (string|nil) Default reply to the input
• completion (string|nil) Specifies type of completion
@@ -2566,7 +2566,7 @@ vim.ui.select({items}, {opts}, {on_choice}) *vim.ui.select()*
<
Parameters: ~
- • {items} (`table`) Arbitrary items
+ • {items} (`any[]`) Arbitrary items
• {opts} (`table`) Additional options
• prompt (string|nil) Text of the prompt. Defaults to
`Select one of:`
@@ -2577,8 +2577,8 @@ vim.ui.select({items}, {opts}, {on_choice}) *vim.ui.select()*
item shape. Plugins reimplementing `vim.ui.select` may
wish to use this to infer the structure or semantics of
`items`, or the context in which select() was called.
- • {on_choice} (`function`) ((item|nil, idx|nil) -> ()) Called once the
- user made a choice. `idx` is the 1-based index of `item`
+ • {on_choice} (`fun(item: any?, idx: integer?)`) Called once the user
+ made a choice. `idx` is the 1-based index of `item`
within `items`. `nil` if the user aborted the dialog.
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt
index fd23f0c84a..8a3770bf27 100644
--- a/runtime/doc/treesitter.txt
+++ b/runtime/doc/treesitter.txt
@@ -732,7 +732,7 @@ get_node({opts}) *vim.treesitter.get_node()*
<
Parameters: ~
- • {opts} (`table?`) Optional keyword arguments:
+ • {opts} (`vim.treesitter.GetNodeOpts?`) Optional keyword arguments:
• bufnr integer|nil Buffer number (nil or 0 for current
buffer)
• pos table|nil 0-indexed (row, col) tuple. Defaults to cursor