You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some nginx config files using mustache for pre-processing, but this applies to any sort of file.
If I open, for example, a foo.json.mustache, then the filetype is set to html.mustache instead of json.mustache.
I'm trying to fix some of this via my own config, but since the au uses set filetype instead of setfiletype this plugin overrides my own ftdetect declarations.[1]
Can I solve this somehow?
Here's a snippet from my ftdetect/nginx.vim:
au BufRead,BufNewFile */nginx/conf.d/*.conf set ft=nginx
au BufRead,BufNewFile */nginx/conf.d/*.conf.mustache set ft=nginx.mustache syntax=mustache
[1]: At least I think this is the issue; I don't know how to really confirm it. If I source the ftdetect/nginx.vim file and reload the example file, then the detection works. But during normal startup it has no effect, despite showing up in the :au output. This is why I suspect it's an ordering problem.
The text was updated successfully, but these errors were encountered:
I have some nginx config files using mustache for pre-processing, but this applies to any sort of file.
If I open, for example, a
foo.json.mustache
, then thefiletype
is set tohtml.mustache
instead ofjson.mustache
.I'm trying to fix some of this via my own config, but since the
au
usesset filetype
instead ofsetfiletype
this plugin overrides my ownftdetect
declarations.[1]Can I solve this somehow?
Here's a snippet from my
ftdetect/nginx.vim
:[1]: At least I think this is the issue; I don't know how to really confirm it. If I source the
ftdetect/nginx.vim
file and reload the example file, then the detection works. But during normal startup it has no effect, despite showing up in the:au
output. This is why I suspect it's an ordering problem.The text was updated successfully, but these errors were encountered: