flow / vim-flow

A vim plugin for Flow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check single file with flow

ingocraft opened this issue · comments

commented

When I use FlowMake or :w in vim, flow will check all the file of the projects.
How can I only check the file editing, and not the other things.

flow check-contents < path/to/file.js works mentioned in facebook/flow#1451.

Am I missing something in vim-flow?
Any advice is appreciated.

commented

I solve it after change flow.vim in vim-flow/plugin.

from

let flow_result = <SID>FlowClientCall('--timeout '.g:flow#timeout.' --retry-if-init false'.expand('%:p'), '2> /dev/null')

to

let flow_result = <SID>FlowClientCall('check-contents '.expand('%:p').' < '.expand('%:p').' --timeout '.g:flow#timeout.' --retry-if-init false', '2> /dev/null')

hope it helps.