It is possible to preview with Asciidoctor in real time!
- Excute the :AsciidocPreview preview asciidoc in real time
- AutoScroll
- Neovim
- Node.js("node" command in $PATH)
- asciidoctor("asciidoctor" command in $PATH)
- asciidoctor-diagram
install with dein
" .vim config
call dein#add('shuntaka9576/preview-asciidoc.nvim', { 'build': 'yarn install', 'merged': 0 } )
# .toml config
[[plugins]]
repo = 'shuntaka9576/preview-asciidoc.nvim'
build = 'yarn install'
merged = 0
usage
:AsciiDocPreview
" set to node path
" default "node" command in $PATH
let g:padoc_node_path = '~/.anyenv/envs/nodenv/shims/node'
" set to lunch port
" default 9136
let g:padoc_lunch_port='6060'
" set asciidoc build command
" deafult `asciidoctor -r asciidoctor-diagram`
let g:padoc_build_command = 'asciidoctor -r asciidoctor-diagram'
" [experimental] auto scroll settings
let g:padoc_experimental_auto_scroll=1
export NVIM_PADOC_LOG_LEVEL=debug
export NVIM_PADOC_LOG_FILE=/tmp/padoc.log
yarn install