kthenrique / preview-asciidoc.nvim

:memo: preview asciidoc in real time!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

preview-asciidoc.nvim

It is possible to preview with Asciidoctor in real time!

preview

Features

  • Excute the :AsciidocPreview preview asciidoc in real time
  • AutoScroll

Requirements

  • Neovim
  • Node.js("node" command in $PATH)
  • asciidoctor("asciidoctor" command in $PATH)
  • asciidoctor-diagram

Install & Usage

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

Config

" 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'

Contribution

export NVIM_PADOC_LOG_LEVEL=debug
export NVIM_PADOC_LOG_FILE=/tmp/padoc.log
yarn install

About

:memo: preview asciidoc in real time!

License:MIT License


Languages

Language:TypeScript 75.7%Language:Vim Script 20.2%Language:HTML 4.0%