diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-03-01 01:47:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 01:47:21 +0100 |
commit | 6fcab7e758f3826b94ab369452b71d15a67c8b36 (patch) | |
tree | 2b965d4866bcfc918e2f13f99c49d36a83281436 /runtime/lua/vim/lsp/protocol.lua | |
parent | 1656367b90bd29d84d5ebf1ccef560368a1973cf (diff) | |
parent | 16262472cda88d0a4dc5c6729cfef36264569324 (diff) | |
download | rneovim-6fcab7e758f3826b94ab369452b71d15a67c8b36.tar.gz rneovim-6fcab7e758f3826b94ab369452b71d15a67c8b36.tar.bz2 rneovim-6fcab7e758f3826b94ab369452b71d15a67c8b36.zip |
Merge pull request #11931 from h-michael/symbol
[RDY] LSP support '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; |