[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:
parent
96475bcbaa
commit
701d97389b
3 changed files with 11 additions and 6 deletions
7
nvim/.config/nvim/plugin/vim-polyglot.vim
Normal file
7
nvim/.config/nvim/plugin/vim-polyglot.vim
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue