Skip to content

Commit

Permalink
fix(ui): split window before opening a file from the Lazy ui, otherwi…
Browse files Browse the repository at this point in the history
…se it'll get closed immediately
  • Loading branch information
folke committed Dec 17, 2022
1 parent 6f728e6 commit f18efa1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazy/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ end

function M.open(uri)
if M.file_exists(uri) then
vim.cmd.split()
return vim.cmd.view(uri)
end
local cmd
Expand Down

0 comments on commit f18efa1

Please sign in to comment.