+9
-4
lines changedFilter options
+9
-4
lines changed Original file line number Diff line number Diff line change
@@ -508,10 +508,13 @@ local function diagnostic_move_pos(opts, pos)
508
508
return
509
509
end
510
510
511
-
-- Save position in the window's jumplist
512
-
vim.api.nvim_win_call(win_id, function() vim.cmd("normal! m'") end)
513
-
514
-
vim.api.nvim_win_set_cursor(win_id, {pos[1] + 1, pos[2]})
511
+
vim.api.nvim_win_call(win_id, function()
512
+
-- Save position in the window's jumplist
513
+
vim.cmd("normal! m'")
514
+
vim.api.nvim_win_set_cursor(win_id, {pos[1] + 1, pos[2]})
515
+
-- Open folds under the cursor
516
+
vim.cmd("normal! zv")
517
+
end)
515
518
516
519
if float then
517
520
local float_opts = type(float) == "table" and float or {}
Original file line number Diff line number Diff line change
@@ -965,6 +965,8 @@ function M.jump_to_location(location)
965
965
local row = range.start.line
966
966
local col = get_line_byte_from_position(0, range.start)
967
967
api.nvim_win_set_cursor(0, {row + 1, col})
968
+
-- Open folds under the cursor
969
+
vim.cmd("normal! zv")
968
970
return true
969
971
end
970
972
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4