mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
lsp: Add support for call hierarchies (#12556)
* LSP: Add support for call hierarchies * LSP: Add support for call hierarchies * LSP: Add support for call hierarchies * LSP: Jump to call location Jump to the call site instead of jumping to the definition of the caller/callee. * LSP: add tests for the call hierarchy callbacks * Fix linting error Co-authored-by: Cédric Barreteau <>
This commit is contained in:
@@ -511,6 +511,7 @@ function lsp.start_client(config)
|
||||
or (not client.resolved_capabilities.type_definition and method == 'textDocument/typeDefinition')
|
||||
or (not client.resolved_capabilities.document_symbol and method == 'textDocument/documentSymbol')
|
||||
or (not client.resolved_capabilities.workspace_symbol and method == 'textDocument/workspaceSymbol')
|
||||
or (not client.resolved_capabilities.call_hierarchy and method == 'textDocument/prepareCallHierarchy')
|
||||
then
|
||||
callback(unsupported_method(method), method, nil, client_id, bufnr)
|
||||
return
|
||||
|
Reference in New Issue
Block a user