aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/buf.lua
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2020-03-01 01:47:21 +0100
committerGitHub <noreply@github.com>2020-03-01 01:47:21 +0100
commit6fcab7e758f3826b94ab369452b71d15a67c8b36 (patch)
tree2b965d4866bcfc918e2f13f99c49d36a83281436 /runtime/lua/vim/lsp/buf.lua
parent1656367b90bd29d84d5ebf1ccef560368a1973cf (diff)
parent16262472cda88d0a4dc5c6729cfef36264569324 (diff)
downloadrneovim-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/buf.lua')
-rw-r--r--runtime/lua/vim/lsp/buf.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua
index 82aeccd4db..fc9e10cb73 100644
--- a/runtime/lua/vim/lsp/buf.lua
+++ b/runtime/lua/vim/lsp/buf.lua
@@ -138,6 +138,11 @@ function M.references(context)
request('textDocument/references', params)
end
+function M.document_symbol()
+ local params = { textDocument = util.make_text_document_params() }
+ request('textDocument/documentSymbol', params)
+end
+
--- Send request to server to resolve document highlights for the
--- current text document position. This request can be associated
--- to key mapping or to events such as `CursorHold`, eg: