Tern & Closure support - angelozerr/tern.java GitHub Wiki

tern-closure provides the closure tern plugin which adds a support for Closure Compiler annotations and the Closure Library

This support provides completion, hyperlink, text hover and validation for Closure framework. here a screenshot with Closure completion :

Completion on DOM

Closure configuration

After installing and converting your project as Tern Project, go at Tern project property, click on Tern / Modules item and select the closure tern plugin :

Select Closure Plugin

After that you can benefit with goog provide/request completion :

Goog Completion

Closure sources configuration

If you need more completion like goog.dom, etc, you need to copy sources of Closure in your Eclipse project :

Closure source

You must configure this dirs as closure source :

Closure source

After this configuration, tern-closure uses the Closure sources to provide completion for classes :

Completion on DOM

Features

Closure completions

Completion on DOM

Closure text hover

Completion on DOM

Closure hyperlink

Closure Hyperlink

Closure Validation

If you select lint tern module, you will benefit with validation :

Closure validation