Skip to content

How to specify autocmd for plugin? #1245

Answered by dpetka2001
alexmozaidze asked this question in Q&A
Discussion options

You must be logged in to vote

The event keyword is being used to determine the event the plugin should be lazy-loaded upon. It's not for setting up Neovim autocmds. You can use the config function for this and just set up the autocmd you want in the config function of the plugin inside its spec.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@alexmozaidze
Comment options

@dpetka2001
Comment options

Answer selected by alexmozaidze
@alexmozaidze
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants