.config/nvim/after/ftplugin/markdown.vim@93b5d2db30bc
.config/nvim/after/ftplugin/markdown.vim
Mon, 26 Aug 2024 14:23:43 -0500
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Mon, 26 Aug 2024 14:23:43 -0500
- changeset 1177
- 93b5d2db30bc
- parent 1163
-
40367220022e
- permissions
- -rw-r--r--
more gopls config. add inlay hint toggle
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