Can autocmds be placed inside config? #767
-
I am setting up
Every time I open a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @kcaashish I have stumbled into the same issue today. I even used exactly the same config as the one you paste here. The quick solution for me was to make sure all my related config is up-to-date. I am running:
Let us know whether that works for you as well. |
Beta Was this translation helpful? Give feedback.
-
You could put the autocmds into the The trouble is with adding a filetype autocmd (the one you define in config) from within a filetype autocmd handler (the one lazy defined to load the plugin). Whether that's guaranteed to work or not I'm not sure |
Beta Was this translation helpful? Give feedback.
You could put the autocmds into the
init =
function which runs before loading (at neovims startup)The trouble is with adding a filetype autocmd (the one you define in config) from within a filetype autocmd handler (the one lazy defined to load the plugin). Whether that's guaranteed to work or not I'm not sure