mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue