docs: Add desc to autocmds
This commit is contained in:
parent
c561bf48e7
commit
547c139f9c
1 changed files with 2 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
||||||
-- Open help window in a vsplit to the right.
|
|
||||||
vim.api.nvim_create_autocmd('BufWinEnter', {
|
vim.api.nvim_create_autocmd('BufWinEnter', {
|
||||||
|
desc = 'Open help files in vertical split to the right',
|
||||||
group = vim.api.nvim_create_augroup('help_window_right', {}),
|
group = vim.api.nvim_create_augroup('help_window_right', {}),
|
||||||
pattern = { '*.txt' },
|
pattern = { '*.txt' },
|
||||||
callback = function()
|
callback = function()
|
||||||
if vim.o.filetype == 'help' then
|
if vim.o.filetype == 'help' then
|
||||||
vim.cmd.wincmd 'L'
|
vim.cmd.wincmd('L')
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue