mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 22:10:45 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user