Skip to content

Commit 2b29beb

Browse files
committed
Show vertical help window
1 parent 53e2428 commit 2b29beb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lua/custom-autocmd.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,3 +306,13 @@ api.nvim_create_autocmd({ "InsertLeave", "TextChanged" }, {
306306
end
307307
end,
308308
})
309+
310+
api.nvim_create_autocmd("FileType", {
311+
group = api.nvim_create_augroup("vertical_help", { clear = true }),
312+
pattern = "help",
313+
desc = "Show help in vertical window",
314+
callback = function(_)
315+
-- L means to put window to leftmost
316+
vim.cmd.wincmd([[L]])
317+
end,
318+
})

0 commit comments

Comments
 (0)