.config/nvim/after/ftplugin/markdown.vim@1cb4636d6d36
.config/nvim/after/ftplugin/markdown.vim
Mon, 15 Jul 2024 13:22:56 -0500
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Mon, 15 Jul 2024 13:22:56 -0500
- changeset 1176
- 1cb4636d6d36
- parent 1163
-
40367220022e
- permissions
- -rw-r--r--
Fix for no-nerdfonts experience
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