angelozerr / tern-node-express

A Tern plugin adding support for express web application framework for node.
http://expressjs.com/
MIT License
56 stars 4 forks source link

Configuration about .tern-project #15

Open lookforit opened 8 years ago

lookforit commented 8 years ago

Hi, I am a huge fan of tern,and use tern-for-vim for nodejs code writing .

I am sorry this question may not relate directly to tern-node-express plugin,but I need your help to instruct me how to configure .tern-project file.

  1. If I installed new packages via npm(global or local in project),how can I tell tern_for_vim to auto complete items in that package?
  2. If I switched to a newer version of node, how to make tern_for_vim to auto complete the item that does not exist in the older version of node,but is included in the newer version? For example, I have installed 2 version of node:

    • 0.10.xx
    • 4.4.2

    In 0.10.xx,the execSync is unavailable,but it should appear in the 4.x version when I pressed dot after require statement:

 var execSync = require( 'child_process' ).execSync;

So pls let me know the way to configure .tern-project for these two scenarios.

Many thanks in advance.

angelozerr commented 8 years ago

Please post your question to tern or tern for vim. Thanks.