Added autocmd to move help window to a v split

This commit is contained in:
2023-07-04 13:42:08 +02:00
parent 7ef654edef
commit d85c2ead1e

View File

@@ -1,5 +1,6 @@
-- Groups -- Groups
local neogitCmds = vim.api.nvim_create_augroup('MyCustomNeogitEvents', { clear = true }) local neogitCmds = vim.api.nvim_create_augroup('MyCustomNeogitEvents', { clear = true })
local nvimhelp = vim.api.nvim_create_augroup("help_window_right", {})
-- Neogit nvim tree refresh -- Neogit nvim tree refresh
vim.api.nvim_create_autocmd('User', { vim.api.nvim_create_autocmd('User', {
@@ -23,3 +24,11 @@ vim.api.nvim_create_autocmd('User', {
require('nvim-tree.api').tree.reload() require('nvim-tree.api').tree.reload()
end, end,
}) })
vim.api.nvim_create_autocmd("BufWinEnter", {
group = nvimhelp,
pattern = { "*.txt" },
callback = function()
if vim.o.filetype == 'help' then vim.cmd.wincmd("L") end
end
})