feat: Open help windows to the right
This commit is contained in:
parent
c474210010
commit
45bbe9938f
1 changed files with 11 additions and 0 deletions
|
@ -126,3 +126,14 @@ autocmd({ 'BufWritePre' }, {
|
||||||
vim.fn.mkdir(vim.fn.fnamemodify(file, ':p:h'), 'p')
|
vim.fn.mkdir(vim.fn.fnamemodify(file, ':p:h'), 'p')
|
||||||
end,
|
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,
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue