diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-10-22 12:16:24 +0100 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-10-22 21:59:48 +0100 |
commit | 629a5b71b55e439392e2a5791940f6dc8d0dd7c0 (patch) | |
tree | 5d581eadedfb5ecb942c2b6522064d75a7f24e8e /runtime/lua/vim/ui.lua | |
parent | 4c25e60767508a3f8bc0631d280407a08f24a67e (diff) | |
download | rneovim-629a5b71b55e439392e2a5791940f6dc8d0dd7c0.tar.gz rneovim-629a5b71b55e439392e2a5791940f6dc8d0dd7c0.tar.bz2 rneovim-629a5b71b55e439392e2a5791940f6dc8d0dd7c0.zip |
fix(lsp): support multiple clients in typehierarchy
Diffstat (limited to 'runtime/lua/vim/ui.lua')
-rw-r--r-- | runtime/lua/vim/ui.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/lua/vim/ui.lua b/runtime/lua/vim/ui.lua index b2e972d07a..899709d3cf 100644 --- a/runtime/lua/vim/ui.lua +++ b/runtime/lua/vim/ui.lua @@ -20,7 +20,8 @@ local M = {} --- end) --- ``` --- ----@param items any[] Arbitrary items +---@generic T +---@param items T[] Arbitrary items ---@param opts table Additional options --- - prompt (string|nil) --- Text of the prompt. Defaults to `Select one of:` @@ -32,7 +33,7 @@ local M = {} --- 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. ----@param on_choice fun(item: any|nil, idx: integer|nil) +---@param on_choice fun(item: T|nil, idx: integer|nil) --- Called once the user made a choice. --- `idx` is the 1-based index of `item` within `items`. --- `nil` if the user aborted the dialog. |