mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
docs: more accurate typing for LSP references context
**Problem:** The `context` parameter for `references()` is just typed as a table, which is unhelpful. **Solution:** Properly type it as an `lsp.ReferenceContext`!
This commit is contained in:
parent
5897994cb7
commit
864f25d6b0
@ -1448,7 +1448,7 @@ references({context}, {opts}) *vim.lsp.buf.references()*
|
||||
window.
|
||||
|
||||
Parameters: ~
|
||||
• {context} (`table?`) Context for the request
|
||||
• {context} (`lsp.ReferenceContext?`) Context for the request
|
||||
• {opts} (`vim.lsp.ListOpts?`) See |vim.lsp.ListOpts|.
|
||||
|
||||
See also: ~
|
||||
|
@ -736,7 +736,7 @@ end
|
||||
|
||||
--- Lists all the references to the symbol under the cursor in the quickfix window.
|
||||
---
|
||||
---@param context (table|nil) Context for the request
|
||||
---@param context lsp.ReferenceContext? Context for the request
|
||||
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_references
|
||||
---@param opts? vim.lsp.ListOpts
|
||||
function M.references(context, opts)
|
||||
|
Loading…
Reference in New Issue
Block a user