From f18efa1da1b1274466444a477574ac2b6a2c24b3 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 17 Dec 2022 10:49:52 +0100 Subject: [PATCH] fix(ui): split window before opening a file from the Lazy ui, otherwise it'll get closed immediately --- lua/lazy/util.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lazy/util.lua b/lua/lazy/util.lua index c2c3d79..594d5b7 100644 --- a/lua/lazy/util.lua +++ b/lua/lazy/util.lua @@ -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