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

Look for a local flow-bin #24

Open
ryyppy opened this issue Jun 16, 2016 · 5 comments
Open

Look for a local flow-bin #24

ryyppy opened this issue Jun 16, 2016 · 5 comments

Comments

@ryyppy
Copy link

ryyppy commented Jun 16, 2016

I always wanted to tackle this, so I might as well create an issue here...
The Vim-Plugin should initially look if there is a node_modules/.bin/flow binary, before trying to use the globally installed one.

@SeeThruHead
Copy link

SeeThruHead commented Jun 22, 2016

"Use locally installed flow
let local_flow = finddir('node_modules', '.;') . '/.bin/flow'
if matchstr(local_flow, "^\/\\w") == ''
    let local_flow= getcwd() . "/" . local_flow
endif
if executable(local_flow)
  let g:flow#flowpath = local_flow
endif

i tried copying over what I have that works for eslint, flow is now showing per project flow errors in my quickfix

@brentvatne
Copy link

Nice one @SeeThruHead!

@ryyppy
Copy link
Author

ryyppy commented Jul 6, 2016

Cool, works like a charm! Not sure if I should close this issue now... IMO this could be part of the README?

@rafaelrinaldi
Copy link

@ryyppy Would be nice to have this as a opt-out setting, since it seems to be the expected default behavior?

@ingocraft
Copy link

works for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants