Autocmd for auto moving help-split to the right
This commit is contained in:
parent
93df01977e
commit
d56fed070e
2 changed files with 16 additions and 0 deletions
13
lua/autocmd.lua
Normal file
13
lua/autocmd.lua
Normal 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,
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue