Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Implement loading of local flow-bin
Browse files Browse the repository at this point in the history
  • Loading branch information
halbgut committed Sep 16, 2016
1 parent 2d6a904 commit fb9778d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugin/flow.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ if !exists("g:flow#qfsize")
let g:flow#qfsize = 1
endif
if !exists("g:flow#flowpath")
let g:flow#flowpath = "flow"
" Search for a local version of flow
let s:npm_local_flowpath = finddir("node_modules", ".;") . "/.bin/flow"
if filereadable(s:npm_local_flowpath)
let g:flow#flowpath = s:npm_local_flowpath
else
let g:flow#flowpath = "flow"
endif
endif
if !exists("g:flow#timeout")
let g:flow#timeout = 2
Expand Down

0 comments on commit fb9778d

Please sign in to comment.