3

I'm using the tern_for_vim plugin for developing node applications. Currently various functions aren't displaying and I'm unsure why. For example: none of the html verb functions appear in the autocompletion list app.get (after assigning var app = express()) however app.listen does and I'm unsure why. I have searched around but can't find anywhere documenting usage of tern with express. Does anyone have a solution?

I have the following configuration file:

.tern-project:

{
  "libs": [
    "browser",
    "jquery",
    "express"
  ],
  "plugins": {
    "node" : {}
  }
}
tjenks
  • 236
  • 4
  • 12
  • How is your Tern project config setup? I've never used it with Tern with Express, but you likely need to [configure](http://ternjs.net/doc/manual.html#configuration) it – brennebeck Sep 05 '14 at 13:44

1 Answers1

4

libs declaration is used for tern JSON type definitions. Today it doesn't exists express tern JSON type definitions, that's why you cannot use it inside your .tern-project

I have created and initialized tern-express project to support express with tern. Any contribution are welcome!

Angelo
  • 2,027
  • 13
  • 17