1
0

Open help in a vertical split

This commit is contained in:
Patrick Auernig 2024-09-30 19:19:02 +02:00
parent 775a1b54fa
commit 9195a341f5

View File

@ -41,3 +41,14 @@ aucmd({ "InsertEnter", "InsertLeave", "BufEnter" }, {
vim.opt.cursorline = not entered_insert_mode vim.opt.cursorline = not entered_insert_mode
end end
}) })
-- Open help window in a vertical split
aucmd("BufWinEnter", {
group = "valeth",
pattern = "*/doc/*",
callback = function()
if vim.bo.filetype == "help" then
vim.cmd.wincmd("H")
end
end
})