mirror of
https://github.com/neovim/neovim.git
synced 2025-12-07 07:02:46 +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:
@@ -688,6 +688,19 @@ function protocol.make_client_capabilities()
|
||||
};
|
||||
hierarchicalDocumentSymbolSupport = true;
|
||||
};
|
||||
workspaceSymbol = {
|
||||
dynamicRegistration = false;
|
||||
symbolKind = {
|
||||
valueSet = (function()
|
||||
local res = {}
|
||||
for k in pairs(protocol.SymbolKind) do
|
||||
if type(k) == 'number' then table.insert(res, k) end
|
||||
end
|
||||
return res
|
||||
end)();
|
||||
};
|
||||
hierarchicalWorkspaceSymbolSupport = true;
|
||||
};
|
||||
};
|
||||
workspace = nil;
|
||||
experimental = nil;
|
||||
|
||||
Reference in New Issue
Block a user