diff --git a/lua/autocmd.lua b/lua/autocmd.lua index 630c49f..897febb 100644 --- a/lua/autocmd.lua +++ b/lua/autocmd.lua @@ -5,9 +5,5 @@ -- 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, + command = 'wincmd L', })