feat: Open help windows to the right

This commit is contained in:
punkfairie 2025-01-04 21:11:40 -08:00
parent c474210010
commit 45bbe9938f
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -126,3 +126,14 @@ autocmd({ 'BufWritePre' }, {
vim.fn.mkdir(vim.fn.fnamemodify(file, ':p:h'), 'p')
end,
})
autocmd({ 'BufWinEnter' }, {
desc = 'Open help files in vertical split to the right',
group = augroup('help_window_right'),
pattern = { '*.txt' },
callback = function()
if vim.o.filetype == 'help' then
vim.cmd.wincmd('L')
end
end,
})