I have the following in order to use a different template per language. But I want English to be the default, if I don't specify
.en.adoc in the filename. But the
*.adoc,*.en.adoc also picks up
*.fr.adoc with the result that I get an English and French header in my new
*.fr.adoc. How can I avoid this?
autocmd BufNewFile *.adoc,*.en.adoc,~/translate/source/* 0r ~/.local/share/nvim/templates/skeleton.en.adoc autocmd BufNewFile *.fr.adoc,~/translate/*/target/* 0r ~/.local/share/nvim/templates/skeleton.fr.adoc