diff options
author | Jonas Strittmatter <40792180+smjonas@users.noreply.github.com> | 2022-08-17 12:39:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-17 12:39:38 +0200 |
commit | 7a076306e4e35371160d1a5d09c92744b8461b57 (patch) | |
tree | 043506ea7316984aee999c62a7c6b8a07e8a0b47 | |
parent | 5d8278591a9a527df406b6df0ceb5538af4567ca (diff) | |
download | rneovim-7a076306e4e35371160d1a5d09c92744b8461b57.tar.gz rneovim-7a076306e4e35371160d1a5d09c92744b8461b57.tar.bz2 rneovim-7a076306e4e35371160d1a5d09c92744b8461b57.zip |
docs(lsp): rename on-list-handler to lsp-on-list-handler (#19813)
This makes it easier to find documentation about the on-list-handler
when starting the search term with "lsp".
-rw-r--r-- | runtime/doc/lsp.txt | 16 | ||||
-rw-r--r-- | runtime/lua/vim/lsp/buf.lua | 14 |
2 files changed, 15 insertions, 15 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 21026f2ef8..94aa42e500 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -415,7 +415,7 @@ For the format of the response message, see: For the format of the notification message, see: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#notificationMessage - *on-list-handler* + *lsp-on-list-handler* `on_list` receives a table with: @@ -1070,7 +1070,7 @@ declaration({options}) *vim.lsp.buf.declaration()* • reuse_win: (boolean) Jump to existing window if buffer is already open. • on_list: (function) handler for list results. See - |on-list-handler| + |lsp-on-list-handler| definition({options}) *vim.lsp.buf.definition()* Jumps to the definition of the symbol under the cursor. @@ -1080,7 +1080,7 @@ definition({options}) *vim.lsp.buf.definition()* • reuse_win: (boolean) Jump to existing window if buffer is already open. • on_list: (function) handler for list results. See - |on-list-handler| + |lsp-on-list-handler| document_highlight() *vim.lsp.buf.document_highlight()* Send request to the server to resolve document highlights for the current @@ -1102,7 +1102,7 @@ document_symbol({options}) *vim.lsp.buf.document_symbol()* Parameters: ~ {options} (table|nil) additional options • on_list: (function) handler for list results. See - |on-list-handler| + |lsp-on-list-handler| execute_command({command_params}) *vim.lsp.buf.execute_command()* Executes an LSP server command. @@ -1211,7 +1211,7 @@ implementation({options}) *vim.lsp.buf.implementation()* Parameters: ~ {options} (table|nil) additional options • on_list: (function) handler for list results. See - |on-list-handler| + |lsp-on-list-handler| incoming_calls() *vim.lsp.buf.incoming_calls()* Lists all the call sites of the symbol under the cursor in the |quickfix| @@ -1260,7 +1260,7 @@ references({context}, {options}) *vim.lsp.buf.references()* {context} (table) Context for the request {options} (table|nil) additional options • on_list: (function) handler for list results. See - |on-list-handler| + |lsp-on-list-handler| See also: ~ https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_references @@ -1302,7 +1302,7 @@ type_definition({options}) *vim.lsp.buf.type_definition()* • reuse_win: (boolean) Jump to existing window if buffer is already open. • on_list: (function) handler for list results. See - |on-list-handler| + |lsp-on-list-handler| workspace_symbol({query}, {options}) *vim.lsp.buf.workspace_symbol()* Lists all symbols in the current workspace in the quickfix window. @@ -1315,7 +1315,7 @@ workspace_symbol({query}, {options}) *vim.lsp.buf.workspace_symbol()* {query} (string, optional) {options} (table|nil) additional options • on_list: (function) handler for list results. See - |on-list-handler| + |lsp-on-list-handler| ============================================================================== diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua index 63f4688d94..6a070928d9 100644 --- a/runtime/lua/vim/lsp/buf.lua +++ b/runtime/lua/vim/lsp/buf.lua @@ -61,7 +61,7 @@ end --- ---@param options table|nil additional options --- - reuse_win: (boolean) Jump to existing window if buffer is already open. ---- - on_list: (function) handler for list results. See |on-list-handler| +--- - on_list: (function) handler for list results. See |lsp-on-list-handler| function M.declaration(options) local params = util.make_position_params() request_with_options('textDocument/declaration', params, options) @@ -71,7 +71,7 @@ end --- ---@param options table|nil additional options --- - reuse_win: (boolean) Jump to existing window if buffer is already open. ---- - on_list: (function) handler for list results. See |on-list-handler| +--- - on_list: (function) handler for list results. See |lsp-on-list-handler| function M.definition(options) local params = util.make_position_params() request_with_options('textDocument/definition', params, options) @@ -81,7 +81,7 @@ end --- ---@param options table|nil additional options --- - reuse_win: (boolean) Jump to existing window if buffer is already open. ---- - on_list: (function) handler for list results. See |on-list-handler| +--- - on_list: (function) handler for list results. See |lsp-on-list-handler| function M.type_definition(options) local params = util.make_position_params() request_with_options('textDocument/typeDefinition', params, options) @@ -91,7 +91,7 @@ end --- quickfix window. --- ---@param options table|nil additional options ---- - on_list: (function) handler for list results. See |on-list-handler| +--- - on_list: (function) handler for list results. See |lsp-on-list-handler| function M.implementation(options) local params = util.make_position_params() request_with_options('textDocument/implementation', params, options) @@ -503,7 +503,7 @@ end ---@param context (table) Context for the request ---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_references ---@param options table|nil additional options ---- - on_list: (function) handler for list results. See |on-list-handler| +--- - on_list: (function) handler for list results. See |lsp-on-list-handler| function M.references(context, options) validate({ context = { context, 't', true } }) local params = util.make_position_params() @@ -516,7 +516,7 @@ end --- Lists all symbols in the current buffer in the quickfix window. --- ---@param options table|nil additional options ---- - on_list: (function) handler for list results. See |on-list-handler| +--- - on_list: (function) handler for list results. See |lsp-on-list-handler| function M.document_symbol(options) local params = { textDocument = util.make_text_document_params() } request_with_options('textDocument/documentSymbol', params, options) @@ -659,7 +659,7 @@ end --- ---@param query (string, optional) ---@param options table|nil additional options ---- - on_list: (function) handler for list results. See |on-list-handler| +--- - on_list: (function) handler for list results. See |lsp-on-list-handler| function M.workspace_symbol(query, options) query = query or npcall(vim.fn.input, 'Query: ') if query == nil then |