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

https://github.com/delapouite/kakoune-flow

Support for flow, the JavaScript type checker
https://github.com/delapouite/kakoune-flow

ecmascript flow flowtype javascript kakoune plugin

Last synced: 3 months ago
JSON representation

Support for flow, the JavaScript type checker

Awesome Lists containing this project

README

          

# kakoune-flow

[kakoune](http://kakoune.org) plugin to work with [flow](https://flow.org/), the JavaScript type checker.

## Install

Add `flow.kak` to your autoload dir: `~/.config/kak/autoload/`.

To use the `flow-coverage` command, you need to have [jq](https://stedolan.github.io/jq/) on your system.

## Usage

It provides the following commands:

- `flow-get-type`: display the type of the name under cursor in info (using `flow type-at-pos`)
- `flow-jump-to-definition`: jump to definition of the name under cursor (using `flow get-def`)
- `flow-coverage`: display the current file coverage in info and highlight missing coverage (using `flow coverage`)
- `flow-coverage-disable`: remove coverage highlighter
- `flow-select-references`: select references of the name under cursor (using `flow find-refs`)

Available options:

- `flow_coverage_percentage`: store the result of previous `flow-coverage` command.

Hidden utility commands:

- `flow-get-type-toggle`: enable/disable auto flow-get-type on NormalIdle

## See also

- [vim-flow](https://github.com/flowtype/vim-flow)
- [eslint-plugin-flowtype-errors](https://github.com/amilajack/eslint-plugin-flowtype-errors)
- [eslint-formatter-kakoune](https://github.com/Delapouite/eslint-formatter-kakoune)
- [kakoune-ecmascript](https://github.com/Delapouite/kakoune-ecmascript)
- [kakoune-typescript](https://github.com/atomrc/kakoune-typescript)
- [kak-lsp](https://github.com/ul/kak-lsp)

## Licence

MIT