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

This commit is contained in:
Maria José Solano authored and Mathias Fußenegger committed 2025-02-16 11:31:08 +01:00
1 parent a49f95d887
commit efe92f9dff
2 files changed
+3 -2

No files matched your search

+2 -1
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|
+1 -1
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
---