Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/atomrc/kakoune-jsdoc

Kakoune JSDoc generator
https://github.com/atomrc/kakoune-jsdoc

jsdoc kakoune

Last synced: about 1 month ago
JSON representation

Kakoune JSDoc generator

Awesome Lists containing this project

README

        

# Kakoune JSDoc generator

Helps you generate JSDoc from [kakoune](http://kakoune.org)

![jsdoc generator demo](/screenshots/demo.gif)

# Install

Copy the `jsdoc.kak` file in your `~/.config/kak/autoload/` folder.

It will add the `jsdoc` function when a `javascript` file is detected

# Generate JSDoc

To generate jsdoc, put the cursor in a line containing a function declaration, then run

:jsdoc

It will parses the function's declaration and extract the name and parameters of the function

You could also add a shortcut to generate doc quickly (here `,d`)

hook global WinSetOption filetype=javascript %{
map global user d ':jsdoc' -docstring "Generate jsdoc"
}

# Limitation

- it only works for function declaration
- it's having some hard times with destructured objects as function parameters