aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp.lua
diff options
context:
space:
mode:
authorChristian Clason <christian.clason@uni-due.de>2020-05-02 17:56:05 +0200
committerGitHub <noreply@github.com>2020-05-02 17:56:05 +0200
commitea347b18d883999ed9a8d2e7c00068058135232f (patch)
treeca1271a72e36e45d6450f8009f9f6e668576c1f5 /runtime/lua/vim/lsp.lua
parent2f42e4d0c86163e64eb56077939fe405dc434e42 (diff)
downloadrneovim-ea347b18d883999ed9a8d2e7c00068058135232f.tar.gz
rneovim-ea347b18d883999ed9a8d2e7c00068058135232f.tar.bz2
rneovim-ea347b18d883999ed9a8d2e7c00068058135232f.zip
lsp: add workspace/symbol (#12224)
* lsp: add workspace/symbol * refactor symbol callback * set hierarchical symbol support to true * add documentation and default mapping Co-authored-by: Hirokazu Hata <h.hata.ai.t@gmail.com>
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r--runtime/lua/vim/lsp.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua
index 4c1c52c796..61da2130c8 100644
--- a/runtime/lua/vim/lsp.lua
+++ b/runtime/lua/vim/lsp.lua
@@ -533,6 +533,7 @@ function lsp.start_client(config)
or (not client.resolved_capabilities.goto_definition and method == 'textDocument/definition')
or (not client.resolved_capabilities.implementation and method == 'textDocument/implementation')
or (not client.resolved_capabilities.document_symbol and method == 'textDocument/documentSymbol')
+ or (not client.resolved_capabilities.workspace_symbol and method == 'textDocument/workspaceSymbol')
then
callback(unsupported_method(method), method, nil, client_id, bufnr)
return