diff options
author | cbarrete <62146989+cbarrete@users.noreply.github.com> | 2020-07-18 21:10:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-18 15:10:09 -0400 |
commit | 08efa7037e05ce229150d17db11b1b1c2419631f (patch) | |
tree | 0064d34f56ed96f82094970d60870d02773349cc /runtime/lua/vim/lsp.lua | |
parent | a02a267f8ad4b6d8b9038d2c7d9b85f03e734814 (diff) | |
download | rneovim-08efa7037e05ce229150d17db11b1b1c2419631f.tar.gz rneovim-08efa7037e05ce229150d17db11b1b1c2419631f.tar.bz2 rneovim-08efa7037e05ce229150d17db11b1b1c2419631f.zip |
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 <>
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 7442f0c0b5..6fe1d15b7e 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -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 |