diff options
author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-02-22 21:14:10 +0900 |
---|---|---|
committer | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-02-28 09:03:17 +0900 |
commit | f157fdef7eccba6601c6d3b1475847466b60c25b (patch) | |
tree | af22614d594412007ebb6045229b50619433589a /runtime/lua/vim/lsp/buf.lua | |
parent | 49cd750d6a72efc0571a89d7a874bbb01081227f (diff) | |
download | rneovim-f157fdef7eccba6601c6d3b1475847466b60c25b.tar.gz rneovim-f157fdef7eccba6601c6d3b1475847466b60c25b.tar.bz2 rneovim-f157fdef7eccba6601c6d3b1475847466b60c25b.zip |
lsp: add bufnr to callback function arguments
DocumentSymbol type doesn't have location field.
So when we'll add 'textDocument/documentSymbol’ handler, we can't decide which file have we jump to.
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
-rw-r--r-- | runtime/lua/vim/lsp/buf.lua | 5 |
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: |