Skip to content

Can autocmds be placed inside config? #767

Answered by IndianBoy42
kcaashish asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@kcaashish
Comment options

@dhia-gharsallaoui
Comment options

@kcaashish
Comment options

@dhia-gharsallaoui
Comment options

@arikapt
Comment options

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