fix(ui): split window before opening a file from the Lazy ui, otherwise it'll get closed immediately

This commit is contained in:
Folke Lemaitre 2022-12-17 10:49:52 +01:00
parent 6f728e698d
commit f18efa1da1
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 0 deletions

View File

@ -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