How to specify autocmd for plugin? #1245
Answered
by
dpetka2001
alexmozaidze
asked this question in
Q&A
-
I want to specify an autocmd for a plugin, but I can't figure out how to do it. |
Beta Was this translation helpful? Give feedback.
Answered by
dpetka2001
Jan 3, 2024
Replies: 1 comment 3 replies
-
You should explain it more clearly. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 theconfig
function for this and just set up the autocmd you want in theconfig
function of the plugin inside its spec.