Sun, 26 Mar 2023 00:48:57 -0500
fix up lsp mappings
runtime ftplugin/text.vim setl equalprg=pandoc\ -f\ markdown\ -t\ markdown if !exists('b:markdown_autohtml') let b:markdown_autohtml = 0 endif function! s:autohtml() abort if get(b:, 'markdown_autohtml', 0) silent !md2html -o "%:p.html" "%:p" endif endfunction augroup Markdown autocmd! autocmd BufWritePost <buffer> call s:autohtml() augroup END