-
Notifications
You must be signed in to change notification settings - Fork 305
Servers Flow
Marshall Roch edited this page Oct 11, 2019
·
7 revisions
Language Server for Flow
npm install -g flow-bin
if executable('flow')
au User lsp_setup call lsp#register_server({
\ 'name': 'flow',
\ 'cmd': {server_info->['flow', 'lsp', '--from', 'vim-lsp']},
\ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), '.flowconfig'))},
\ 'whitelist': ['javascript', 'javascript.jsx'],
\ })
endif