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.
This commit is contained in:
Hirokazu Hata
2020-02-22 21:14:10 +09:00
parent 49cd750d6a
commit f157fdef7e
2 changed files with 11 additions and 6 deletions

View File

@@ -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: