Skip to content

Instantly share code, notes, and snippets.

@ahmedelgabri
Created August 7, 2016 19:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmedelgabri/d0960e04040f8d2560339ba92790e7d9 to your computer and use it in GitHub Desktop.
Save ahmedelgabri/d0960e04040f8d2560339ba92790e7d9 to your computer and use it in GitHub Desktop.
if findfile('.flowconfig', '.;') !=# ''
if executable($PWD .'/node_modules/.bin/flow')
let g:flow_path = $PWD .'/node_modules/.bin/flow'
else
let g:flow_path = 'flow'
endif
let g:neomake_javascript_flow_maker = {
\ 'exe': 'sh',
\ 'args': ['-c', g:flow_path.' --json --strip-root | flow-vim-quickfix'],
\ 'errorformat': '%E%f:%l:%c\,%n: %m',
\ 'cwd': '%:p:h'
\ }
let g:neomake_javascript_enabled_makers = g:neomake_javascript_enabled_makers + [ 'flow']
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment