.config/nvim/after/ftplugin/markdown.vim@915a78d501d5
.config/nvim/after/ftplugin/markdown.vim
Mon, 20 May 2024 12:53:43 -0500
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Mon, 20 May 2024 12:53:43 -0500
- changeset 1170
- 915a78d501d5
- parent 1163
-
40367220022e
- permissions
- -rw-r--r--
Bump nvim-treesitter to more recent commit
runtime ftplugin/text.vim
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