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)
|
||||
if M.file_exists(uri) then
|
||||
vim.cmd.split()
|
||||
return vim.cmd.view(uri)
|
||||
end
|
||||
local cmd
|
||||
|
|
Loading…
Reference in New Issue