Open help in a vertical split
This commit is contained in:
parent
775a1b54fa
commit
9195a341f5
@ -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
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user