From: Huck Boles Date: Sat, 13 May 2023 20:22:38 +0000 (-0500) Subject: git windows split to right side X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=e1bae755c92802cb46b525c33ff50d5f94d81996;p=nvim.git git windows split to right side --- 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