diff options
| author | Yinzuo Jiang <jiangyinzuo@foxmail.com> | 2024-04-20 21:40:01 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-20 15:40:01 +0200 |
| commit | f190f758ac58d9cc955368e047b070e0a2261033 (patch) | |
| tree | 01b942694411b6d2852cff8a9123068ebe27a7ad /runtime/doc | |
| parent | fd085d90820149caecf213b299f19e46305043ee (diff) | |
| download | rneovim-f190f758ac58d9cc955368e047b070e0a2261033.tar.gz rneovim-f190f758ac58d9cc955368e047b070e0a2261033.tar.bz2 rneovim-f190f758ac58d9cc955368e047b070e0a2261033.zip | |
feat(lsp): add vim.lsp.buf.subtypes(), vim.lsp.buf.supertypes() (#28388)
Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
Co-authored-by: Maria José Solano <majosolano99@gmail.com>
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/lsp.txt | 13 | ||||
| -rw-r--r-- | runtime/doc/news.txt | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index df85b7a2a9..42ed31a186 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -182,6 +182,7 @@ won't run if your server doesn't support them. - textDocument/hover - textDocument/implementation* - textDocument/inlayHint +- textDocument/prepareTypeHierarchy - textDocument/publishDiagnostics - textDocument/rangeFormatting - textDocument/references @@ -190,6 +191,8 @@ won't run if your server doesn't support them. - textDocument/semanticTokens/full/delta - textDocument/signatureHelp - textDocument/typeDefinition* +- typeHierarchy/subtypes +- typeHierarchy/supertypes - window/logMessage - window/showMessage - window/showDocument @@ -1428,6 +1431,16 @@ signature_help() *vim.lsp.buf.signature_help()* Displays signature information about the symbol under the cursor in a floating window. +subtypes() *vim.lsp.buf.subtypes()* + Lists all the subtypes of the symbol under the cursor in the |quickfix| + window. If the symbol can resolve to multiple items, the user can pick one + using |vim.ui.select()|. + +supertypes() *vim.lsp.buf.supertypes()* + Lists all the supertypes of the symbol under the cursor in the |quickfix| + window. If the symbol can resolve to multiple items, the user can pick one + using |vim.ui.select()|. + type_definition({options}) *vim.lsp.buf.type_definition()* Jumps to the definition of the type of the symbol under the cursor. diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 29b728b013..2c940887c0 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -215,6 +215,8 @@ The following new APIs and features were added. https://microsoft.github.io/language-server-protocol/specification/#textDocument_inlayHint • Implemented pull diagnostic textDocument/diagnostic: |vim.lsp.diagnostic.on_diagnostic()| https://microsoft.github.io/language-server-protocol/specification/#textDocument_diagnostic + • Implemented LSP type hierarchy: |vim.lsp.buf.supertypes()| and |vim.lsp.buf.subtypes()| + https://microsoft.github.io/language-server-protocol/specification/#textDocument_prepareTypeHierarchy • |vim.lsp.status()| consumes the last progress messages as a string. • LSP client now always saves and restores named buffer marks when applying text edits. |