fix(lsp): support multiple clients in typehierarchy

This commit is contained in:
Lewis Russell
2024-10-22 12:16:24 +01:00
committed by Lewis Russell
parent 4c25e60767
commit 629a5b71b5
4 changed files with 78 additions and 70 deletions

View File

@@ -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.