From 9914f5ae916d52c000d5e9f9508a001c8ac8e3c9 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 24 Oct 2019 17:06:30 +0200 Subject: [PATCH] Fix pandoc conceal levels and add to Prose group --- .config/nvim/init.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index f3751bd..f75bda8 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -147,6 +147,7 @@ augroup END au! BufRead,BufNewFile *.markdown set filetype=markdown au! BufRead,BufNewFile *.md set filetype=markdown au! BufRead,BufNewFile *.mkd set filetype=markdown + " automatically enables markdown plugins for md & txt files function! Prose() call plug#load('vim-pencil') @@ -155,13 +156,13 @@ function! Prose() " enable extended sentence textobject use on md and plaintext files call textobj#sentence#init() " hide the markdown cruft - set conceallevel=3 + set conceallevel=2 endfunction " enable syntax highlighting for codeblocks WITHIN markdown let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'javascipt', 'go'] " call the prose function defined above for any md files -autocmd FileType markdown,txt,rmarkdown call Prose() +autocmd FileType pandoc,markdown,txt,rmarkdown call Prose() " or invoke it manually by writing :Prose command! -nargs=0 Prose call Prose() @@ -179,6 +180,7 @@ let g:pandoc#hypertext#ausosave_on_edit_open_link=1 let g:pandoc#hypertext#create_if_no_alternates_exists=1 " configuration for vim-pandoc and vim-rmarkdown let g:pandoc#syntax#conceal#use = 1 +let g:pandoc#syntax#conceal#urls = 1 " PLUGIN: wiki.vim if $WIKIROOT ==? "" @@ -389,7 +391,7 @@ let g:gruvbox_italic=1 let g:one_allow_italics=1 let g:pencil_terminal_italics=1 -colorscheme gruvbox +colorscheme one " disable automatically refreshing the mux statusbar since it breaks tmux