mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user