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
3
init.lua
3
init.lua
|
@ -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
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…
Reference in a new issue