Module bex.autoload.autocmd

:autocmd support.

Defines overrides for the autocmd command. The command to run when triggered may be a Lua callable instead of raw text. In this case, it is invoked with no arguments. Use vim.v.event to get event parameters, e.g.:

cmd.autocmd(
    'DirChanged', '*',
    function() print("New dir: " .. vim.v.event.cwd) end)



generated by LDoc 1.4.6 Last updated 2021-06-29 21:08:43