diff --git a/.config/nvim/pluglist/latex.vim b/.config/nvim/pluglist/latex.vim index 76d7e4d..21623b3 100644 --- a/.config/nvim/pluglist/latex.vim +++ b/.config/nvim/pluglist/latex.vim @@ -5,6 +5,7 @@ Plug 'vim-pandoc/vim-pandoc' " handle markdown files with pandoc (and pandoc syntax!) let g:pandoc#modules#disabled = ["folding"] let g:pandoc#filetypes#pandoc_markdown = 1 +let g:pandoc#filetypes#handled = [ "extra", "latex", "markdown", "pandoc", "rst", "textile" ] " disable all default keymaps let g:pandoc#keyboard#use_default_mappings=0 let g:pandoc#hypertext#use_default_mappings=0 @@ -13,7 +14,11 @@ let g:pandoc#command#prefer_pdf=1 " look for bibtex files w/ same name as edited one, then .bib in current dir, yaml frontmatter, and finally the globally set bibs file let g:pandoc#biblio#sources="bcyg" " the globally set bibs file -let g:pandoc#biblio#bibs=[expand("~/Nextcloud/Library/academia/academia.bib")] +if $BIBFILE ==? "" + let g:pandoc#biblio#bibs=[expand("~/documents/library/academia/academia.bib")] +else + let g:pandoc#biblio#bibs=[expand($BIBFILE)] +endif let g:pandoc#biblio#use_bibtool=1 let g:pandoc#biblio#use_preview=1 let g:pandoc#completion#bib#mode='citeproc'