Check single file with flow
ingocraft opened this issue · comments
Liam 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.
Liam 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.