From 2a1f2796923e34d2b7249eb1810514acad18db53 Mon Sep 17 00:00:00 2001 From: Jan Stocker Date: Thu, 17 Oct 2024 08:15:49 +0200 Subject: [PATCH 1/2] Keep alternative-file --- lua/kulala/ui/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/kulala/ui/init.lua b/lua/kulala/ui/init.lua index ab3286a..3cd2d3e 100644 --- a/lua/kulala/ui/init.lua +++ b/lua/kulala/ui/init.lua @@ -74,7 +74,7 @@ end local open_buffer = function() local prev_win = vim.api.nvim_get_current_win() local sd = CONFIG.get().split_direction == "vertical" and "vsplit" or "split" - vim.cmd(sd .. " " .. GLOBALS.UI_ID) + vim.cmd("keepalt ".. sd .. " " .. GLOBALS.UI_ID) if CONFIG.get().winbar then WINBAR.create_winbar(get_win()) end From 601ea460ab786bb92baecb3123831cd57f3ab11c Mon Sep 17 00:00:00 2001 From: Jan Stocker Date: Thu, 17 Oct 2024 09:04:47 +0200 Subject: [PATCH 2/2] Fix spacing --- lua/kulala/ui/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/kulala/ui/init.lua b/lua/kulala/ui/init.lua index 3cd2d3e..2b02002 100644 --- a/lua/kulala/ui/init.lua +++ b/lua/kulala/ui/init.lua @@ -74,7 +74,7 @@ end local open_buffer = function() local prev_win = vim.api.nvim_get_current_win() local sd = CONFIG.get().split_direction == "vertical" and "vsplit" or "split" - vim.cmd("keepalt ".. sd .. " " .. GLOBALS.UI_ID) + vim.cmd("keepalt " .. sd .. " " .. GLOBALS.UI_ID) if CONFIG.get().winbar then WINBAR.create_winbar(get_win()) end