Skip to content

Commit e0eeb2f

Browse files
committed
fix(actions): werid issue when set verbose=1
maybe there're other similar issue, to be discovered
1 parent 83f7195 commit e0eeb2f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lua/fzf-lua/utils.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,8 +1625,10 @@ end
16251625
---@return boolean
16261626
function M.jump_to_location(location, offset_encoding, reuse_win)
16271627
if M.__HAS_NVIM_011 then
1628-
return vim.lsp.util.show_document(location, offset_encoding,
1629-
{ reuse_win = reuse_win, focus = true })
1628+
return M.with({ o = { verbose = 0 } }, function()
1629+
vim.lsp.util.show_document(location, offset_encoding,
1630+
{ reuse_win = reuse_win, focus = true })
1631+
end)
16301632
else
16311633
---@diagnostic disable-next-line: deprecated
16321634
return vim.lsp.util.jump_to_location(location, offset_encoding, reuse_win)

0 commit comments

Comments
 (0)