diff --git a/lua/config/autocmds.lua b/lua/config/autocmds.lua index 135b14e..4c8867b 100644 --- a/lua/config/autocmds.lua +++ b/lua/config/autocmds.lua @@ -1,10 +1,10 @@ --- Open help window in a vsplit to the right. 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', {}), pattern = { '*.txt' }, callback = function() if vim.o.filetype == 'help' then - vim.cmd.wincmd 'L' + vim.cmd.wincmd('L') end end, })