File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1625,8 +1625,10 @@ end
16251625--- @return boolean
16261626function 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+ return 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 )
Original file line number Diff line number Diff line change @@ -151,9 +151,9 @@ T["win"]["keymap"]["no error"] = new_set({
151151 :map (function (key , action ) return { key , action } end )
152152 :totable ()
153153}, {
154- function (key , _action )
155- local builtin = child .lua_get [[ FzfLua.defaults.keymap.builtin]]
154+ function (key , action )
156155 for _ , event in ipairs ({ " start" , " load" , " result" }) do
156+ if action == " toggle-preview" then helpers .SKIP_IF_WIN () end
157157 helpers .FzfLua .files (child , {
158158 __abort_key = key .. " <c-c>" ,
159159 __expect_lines = false ,
@@ -184,14 +184,9 @@ T["win"]["previewer"]["split flex layout resize"] = function()
184184 }
185185 },
186186 previewer = function () return require (" fzf-lua.test.previewer" ).builtin end ,
187- keymap = {
188- fzf = {
189- resize = function ()
190- _G ._fzf_resize_called = true
191- end
192- }
193- },
187+ keymap = { fzf = { resize = function () _G ._fzf_resize_called = true end } },
194188 __after_open = function ()
189+ if helpers .IS_WIN () then vim .uv .sleep (250 ) end
195190 child .wait_until (function ()
196191 return child .lua_get ([[ FzfLua.utils.fzf_winobj()._previewer.last_entry]] ) == " foo"
197192 end )
You can’t perform that action at this time.
0 commit comments