aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2024-04-23 19:05:01 +0200
committerGitHub <noreply@github.com>2024-04-23 19:05:01 +0200
commitc81b7849a0f677164c01cf84ecfb25c1f47acf21 (patch)
tree31e11059634023a90d96d409ca8a5c3240b3fdbb /runtime/doc
parent052498ed42780a76daea589d063cd8947a894673 (diff)
downloadrneovim-c81b7849a0f677164c01cf84ecfb25c1f47acf21.tar.gz
rneovim-c81b7849a0f677164c01cf84ecfb25c1f47acf21.tar.bz2
rneovim-c81b7849a0f677164c01cf84ecfb25c1f47acf21.zip
refactor(lsp): merge subtypes and supertypes into typehierarchy (#28467)
Both methods had pretty much the same documentation and shared the implementation.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt18
-rw-r--r--runtime/doc/news.txt2
2 files changed, 9 insertions, 11 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 42ed31a186..9385d92416 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1431,22 +1431,20 @@ 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.
Parameters: ~
• {options} (`vim.lsp.LocationOpts?`) See |vim.lsp.LocationOpts|.
+typehierarchy({kind}) *vim.lsp.buf.typehierarchy()*
+ Lists all the subtypes or 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()|.
+
+ Parameters: ~
+ • {kind} (`"subtypes"|"supertypes"`)
+
workspace_symbol({query}, {options}) *vim.lsp.buf.workspace_symbol()*
Lists all symbols in the current workspace in the quickfix window.
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 39a99a61d1..7d189d7df0 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -217,7 +217,7 @@ 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()|
+ • Implemented LSP type hierarchy: |vim.lsp.buf.typehierarchy()|
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