shuntaka9576 / preview-swagger.nvim

:green_book: preview swagger in real time!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

preview-swagger.nvim

It is possible to preview with SwaggerUI in real time!

preview

Features

  • Excute the :SwaggerPreview commannd and preview the yaml swagger configuration file in real time with SwaggerUI
  • JSON configuration
  • AutoScroll

Requirements

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

Install & Usage

install with dein

" .vim config
call dein#add('shuntaka9576/preview-swagger.nvim', { 'build': 'yarn install' } )
# .toml config
[[plugins]]
repo = 'shuntaka9576/preview-swagger.nvim'
build = 'yarn install'

command

:SwaggerPreview

Config

" set to node path
" default "node" command in $PATH
let g:pswag_node_path = '~/.anyenv/envs/nodenv/shims/node'

" set to lunch port
" default 9126
let g:pswag_lunch_port='6060'

" set to lunch address
" default 127.0.0.1
let g:pswag_lunch_ip='xxx.x.x.xx'

Contribution

export NVIM_PSWAG_LOG_LEVEL=debug
export NVIM_PSWAG_LOG_FILE=/tmp/pswag.log
yarn install

About

:green_book: preview swagger in real time!

License:MIT License


Languages

Language:TypeScript 50.2%Language:HTML 29.4%Language:Vim Script 14.0%Language:JavaScript 6.5%