diff options
author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-02-22 21:20:38 +0900 |
---|---|---|
committer | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-03-01 09:10:02 +0900 |
commit | 16262472cda88d0a4dc5c6729cfef36264569324 (patch) | |
tree | a2262b0ccd3a957c9f27114365dff0f835bbc71c /runtime/lua/vim/lsp/protocol.lua | |
parent | f157fdef7eccba6601c6d3b1475847466b60c25b (diff) | |
download | rneovim-16262472cda88d0a4dc5c6729cfef36264569324.tar.gz rneovim-16262472cda88d0a4dc5c6729cfef36264569324.tar.bz2 rneovim-16262472cda88d0a4dc5c6729cfef36264569324.zip |
lsp: add 'textDocument/documentSymbol’ callback
Spec: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_documentSymbol
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r-- | runtime/lua/vim/lsp/protocol.lua | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua index f64b0b50e7..41e8119c8c 100644 --- a/runtime/lua/vim/lsp/protocol.lua +++ b/runtime/lua/vim/lsp/protocol.lua @@ -663,19 +663,19 @@ function protocol.make_client_capabilities() documentHighlight = { dynamicRegistration = false }; - -- documentSymbol = { - -- dynamicRegistration = false; - -- symbolKind = { - -- valueSet = (function() - -- local res = {} - -- for k in pairs(protocol.SymbolKind) do - -- if type(k) == 'string' then table.insert(res, k) end - -- end - -- return res - -- end)(); - -- }; - -- hierarchicalDocumentSymbolSupport = false; - -- }; + documentSymbol = { + 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)(); + }; + hierarchicalDocumentSymbolSupport = true; + }; }; workspace = nil; experimental = nil; |