2024-02-21 19:42:52 -08:00
|
|
|
-- Autocmds are automatically loaded on the VeryLazy event
|
|
|
|
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
|
|
|
-- Add any additional autocmds here
|
2024-02-24 10:39:03 -08:00
|
|
|
|
|
|
|
-- Open help window in a vertical split to the right.
|
|
|
|
vim.api.nvim_create_autocmd("BufWinEnter", {
|
|
|
|
group = vim.api.nvim_create_augroup("help_window_right", {}),
|
|
|
|
pattern = { "*.txt" },
|
|
|
|
callback = function()
|
|
|
|
if vim.o.filetype == "help" then
|
|
|
|
vim.cmd.wincmd("L")
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|