mirror of
https://github.com/neovim/neovim
synced 2025-07-17 17:51:48 +00:00
feat(diagnostic): update jumplist on goto_next/prev (#15942)
This commit is contained in:
@ -510,6 +510,9 @@ local function diagnostic_move_pos(opts, pos)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Save position in the window's jumplist
|
||||||
|
vim.api.nvim_win_call(win_id, function() vim.cmd("normal! m'") end)
|
||||||
|
|
||||||
vim.api.nvim_win_set_cursor(win_id, {pos[1] + 1, pos[2]})
|
vim.api.nvim_win_set_cursor(win_id, {pos[1] + 1, pos[2]})
|
||||||
|
|
||||||
if enable_popup then
|
if enable_popup then
|
||||||
|
Reference in New Issue
Block a user