flow / vim-flow

A vim plugin for Flow
Other
525 stars 52 forks source link

`:FlowType` output on a multiline #75

Open antonk52 opened 6 years ago

antonk52 commented 6 years ago

At the moment when I look up a type of a variable under cursor with :FlowType the output in a split is in a single line and is not well readable, I have not found a toggle to show the type of the variable under the cursor in a more readable manner. Is there a way to get such behaviour at the moment?

Perhaps this can be a feature request

antonk52 commented 6 years ago

As a temporary workaround I have patched the output of the flow#get_type() function with removing unwanted text with following

  let output = substitute(output, 'Please wait. ', '', '')
  let output = substitute(output, 'Server is garbage collecting shared memory: ', '', '')
  let output = substitute(output, ' -Please wait. Server is handling a request (starting up):', '', '')

perhaps this might make it way into the plugin?