Fix pandoc conceal levels and add to Prose group

This commit is contained in:
Marty Oehme 2019-10-24 17:06:30 +02:00
parent 675e4fd9d5
commit 9914f5ae91

View file

@ -147,6 +147,7 @@ augroup END
au! BufRead,BufNewFile *.markdown set filetype=markdown au! BufRead,BufNewFile *.markdown set filetype=markdown
au! BufRead,BufNewFile *.md set filetype=markdown au! BufRead,BufNewFile *.md set filetype=markdown
au! BufRead,BufNewFile *.mkd set filetype=markdown au! BufRead,BufNewFile *.mkd set filetype=markdown
" automatically enables markdown plugins for md & txt files " automatically enables markdown plugins for md & txt files
function! Prose() function! Prose()
call plug#load('vim-pencil') call plug#load('vim-pencil')
@ -155,13 +156,13 @@ function! Prose()
" enable extended sentence textobject use on md and plaintext files " enable extended sentence textobject use on md and plaintext files
call textobj#sentence#init() call textobj#sentence#init()
" hide the markdown cruft " hide the markdown cruft
set conceallevel=3 set conceallevel=2
endfunction endfunction
" enable syntax highlighting for codeblocks WITHIN markdown " enable syntax highlighting for codeblocks WITHIN markdown
let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'javascipt', 'go'] let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'javascipt', 'go']
" call the prose function defined above for any md files " 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 " or invoke it manually by writing :Prose
command! -nargs=0 Prose call 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 let g:pandoc#hypertext#create_if_no_alternates_exists=1
" configuration for vim-pandoc and vim-rmarkdown " configuration for vim-pandoc and vim-rmarkdown
let g:pandoc#syntax#conceal#use = 1 let g:pandoc#syntax#conceal#use = 1
let g:pandoc#syntax#conceal#urls = 1
" PLUGIN: wiki.vim " PLUGIN: wiki.vim
if $WIKIROOT ==? "" if $WIKIROOT ==? ""
@ -389,7 +391,7 @@ let g:gruvbox_italic=1
let g:one_allow_italics=1 let g:one_allow_italics=1
let g:pencil_terminal_italics=1 let g:pencil_terminal_italics=1
colorscheme gruvbox colorscheme one
" disable automatically refreshing the mux statusbar since it breaks tmux " disable automatically refreshing the mux statusbar since it breaks tmux