mirror of https://github.com/folke/lazy.nvim.git
fix(ui): split window before opening a file from the Lazy ui, otherwise it'll get closed immediately
This commit is contained in:
parent
6f728e698d
commit
f18efa1da1
|
@ -6,6 +6,7 @@ end
|
||||||
|
|
||||||
function M.open(uri)
|
function M.open(uri)
|
||||||
if M.file_exists(uri) then
|
if M.file_exists(uri) then
|
||||||
|
vim.cmd.split()
|
||||||
return vim.cmd.view(uri)
|
return vim.cmd.view(uri)
|
||||||
end
|
end
|
||||||
local cmd
|
local cmd
|
||||||
|
|
Loading…
Reference in New Issue