diff options
author | Maria José Solano <majosolano99@gmail.com> | 2025-02-15 13:56:02 -0800 |
---|---|---|
committer | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2025-02-16 11:31:08 +0100 |
commit | efe92f9dff9383cf78a2d0c857448a14514c7043 (patch) | |
tree | daa4c7c94553989f2984d4cfbaff342bc1abbc7f | |
parent | a49f95d887a2425f11cb4a9b38f7b0039e4d837f (diff) | |
download | rneovim-efe92f9dff9383cf78a2d0c857448a14514c7043.tar.gz rneovim-efe92f9dff9383cf78a2d0c857448a14514c7043.tar.bz2 rneovim-efe92f9dff9383cf78a2d0c857448a14514c7043.zip |
fix(docs): update context type in `vim.lsp.LocationOpts.OnList`
-rw-r--r-- | runtime/doc/lsp.txt | 3 | ||||
-rw-r--r-- | runtime/lua/vim/lsp/buf.lua | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 954d21ec34..93b5d3cdcc 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -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| diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua index d4a7e066f6..49e71af4f6 100644 --- a/runtime/lua/vim/lsp/buf.lua +++ b/runtime/lua/vim/lsp/buf.lua @@ -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 --- |