From e1bae755c92802cb46b525c33ff50d5f94d81996 Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Sat, 13 May 2023 15:22:38 -0500 Subject: [PATCH] git windows split to right side --- lua/functions.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/functions.lua b/lua/functions.lua index f900753..dc2fa62 100644 --- a/lua/functions.lua +++ b/lua/functions.lua @@ -2,7 +2,8 @@ vim.api.nvim_create_autocmd("BufWinEnter", { pattern = { "*" }, callback = function() - if vim.o.filetype == 'help' or 'fugitive' or 'gitcommit' then + local filetype = vim.o.filetype + if filetype == 'help' or filetype == 'fugitive' or filetype == 'gitcommit' then vim.cmd.wincmd("L") end end -- 2.44.2