.config/nvim/after/ftplugin/markdown.vim@8993dc4128de
.config/nvim/after/ftplugin/markdown.vim
Wed, 28 Aug 2024 04:44:05 -0500
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Wed, 28 Aug 2024 04:44:05 -0500
- changeset 1178
- 8993dc4128de
- parent 1163
-
40367220022e
- permissions
- -rw-r--r--
add assign types gopls hint too
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