fix(docs): update context type in vim.lsp.LocationOpts.OnList

This commit is contained in:
Maria José Solano 2025-02-15 13:56:02 -08:00 committed by Mathias Fußenegger
parent a49f95d887
commit efe92f9dff
2 changed files with 3 additions and 2 deletions

View File

@ -1465,7 +1465,8 @@ Lua module: vim.lsp.buf *lsp-buf*
Fields: ~
• {items} (`table[]`) Structured like |setqflist-what|
• {title}? (`string`) Title for the list.
• {context}? (`table`) `ctx` from |lsp-handler|
• {context}? (`{ bufnr: integer, method: string }`) Subset of `ctx`
from |lsp-handler|.
*vim.lsp.buf.hover.Opts*
Extends: |vim.lsp.util.open_floating_preview.Opts|

View File

@ -264,7 +264,7 @@ end
--- @class vim.lsp.LocationOpts.OnList
--- @field items table[] Structured like |setqflist-what|
--- @field title? string Title for the list.
--- @field context? table `ctx` from |lsp-handler|
--- @field context? { bufnr: integer, method: string } Subset of `ctx` from |lsp-handler|.
--- @class vim.lsp.LocationOpts: vim.lsp.ListOpts
---