Autocmd for auto moving help-split to the right

This commit is contained in:
Imbus 2024-08-04 03:28:42 +02:00
parent 93df01977e
commit d56fed070e
2 changed files with 16 additions and 0 deletions

View file

@ -16,6 +16,9 @@ require 'options'
-- [[ Basic Keymaps ]] -- [[ Basic Keymaps ]]
require 'keymaps' require 'keymaps'
-- [[ Setting autocmd's ]]
require 'autocmd'
-- [[ Install `lazy.nvim` plugin manager ]] -- [[ Install `lazy.nvim` plugin manager ]]
require 'lazy-bootstrap' require 'lazy-bootstrap'

13
lua/autocmd.lua Normal file
View file

@ -0,0 +1,13 @@
-- [[ Setting autocmd's ]]
-- See `:help autocmd`
-- Instantly move help window to the right
-- This is almost certainly a hacky way to do this)
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'help' },
callback = function()
vim.schedule(function()
vim.cmd 'wincmd L'
end)
end,
})