mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
lsp: callback for references now opens qf (#12171)
In contrast to other callbacks for LSP requests like `textDocument/documentSymbols`, does the one for references not open the quickfix window after the quickfix list was filled. This left the user in a situation he don't know what or if something had happen. Related to: neovim/neovim#12170
This commit is contained in:
parent
6c9a5743a0
commit
deb4566cab
@ -50,6 +50,8 @@ end
|
||||
M['textDocument/references'] = function(_, _, result)
|
||||
if not result then return end
|
||||
util.set_qflist(util.locations_to_items(result))
|
||||
api.nvim_command("copen")
|
||||
api.nvim_command("wincmd p")
|
||||
end
|
||||
|
||||
M['textDocument/documentSymbol'] = function(_, _, result, _, bufnr)
|
||||
|
Loading…
Reference in New Issue
Block a user