[nvim] Set all markdown-like documents to pandoc

Whenever I write markdown, I want it to be interpreted by pandoc rather
than markdown itself. I write the pandoc flavor of md, I want the pandoc
plugin to handle the files, and I want to enable citations and
compilation in every markdown file.
This commit is contained in:
Marty Oehme 2020-05-26 17:40:45 +02:00
parent 96475bcbaa
commit 701d97389b
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
3 changed files with 11 additions and 6 deletions

View file

@ -0,0 +1,7 @@
" PLUGIN: vim-polyglot
"
" we disable markdown so that every markdown file can be given pandoc type
let g:polyglot_disabled = ['markdown']
au BufNewFile,BufRead *.{md,mdown,mkd,mkdn,markdown,mdwn} set ft=pandoc
au BufNewFile,BufRead *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,idea,cast,rc2,rc4,rc5,desx} set ft=pandoc