Skip to content

provides javascript autocomplete for asyncomplete.vim via flow

Notifications You must be signed in to change notification settings

prabirshrestha/asyncomplete-flow.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

JavaScript source for asyncomplete.vim via Flow

Provide javascript autocompletion source for asyncomplete.vim via Flow

Installing

Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-flow.vim'

async.vim is required.

Registration

au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#flow#get_source_options({
    \ 'name': 'flow',
    \ 'allowlist': ['javascript'],
    \ 'completor': function('asyncomplete#sources#flow#completor'),
    \ 'config': {
    \    " Resolves 'flow' in the closest node_modules/.bin directory (in case
    \    " flow is installed via 'npm install flow-bin' locally). Falls back to
    \    " 'flowbin_path' (see below) if can't find it.
    \    'prefer_local': 1,
    \    " Path to 'flow' executable.
    \    'flowbin_path': expand('~/bin/flow'),
    \    " Displays additional typeinfo exposed by flow, if any is provided. 
    \    " Defaults to 0.
    \    'show_typeinfo': 1
    \  },
    \ }))

Note: config is optional. flowbin_path defaults to flow i.e., flow binary should exist in the PATH if config is not specified.

Also make sure your javascript project is correctly initialized with .flowconfig.

About

provides javascript autocomplete for asyncomplete.vim via flow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •