Skip to content

Commit

Permalink
vim-flow fix: Look for a local flow-bin
Browse files Browse the repository at this point in the history
  • Loading branch information
datadeflator committed Jul 31, 2017
1 parent 5d0dd08 commit 366157a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions my_configs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,17 @@ set number
nmap <C-N><C-N> :set invnumber<CR>
autocmd FileType javascript setlocal shiftwidth=2 softtabstop=2 tabstop=2

let g:syntastic_java_checkers=['']
let g:syntastic_javascript_checkers=['eslint']

" https://github.com/flowtype/vim-flow/issues/24
" https://github.com/flowtype/vim-flow/issues/60
"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

0 comments on commit 366157a

Please sign in to comment.