mortalapeman / LT-TernJS

A TernJS plugin for Light Table
Other
32 stars 4 forks source link

Ability to configure plugins for Tern server #2

Closed mortalapeman closed 10 years ago

mortalapeman commented 10 years ago

Currently, the nodejs file used to setup the Tern server loads all plugins found in the provided node module. We need a way to configure which plugins get loaded by the tern process that fits with the Light Table architecture.

I was thinking of using behaviors for the configuration like below:

{:+ {:tern-client [(:lt.plugins.tern/use-plugin "angular.js")]}}

Since behaviors can be setup on the workspace level, this seemed like a good path to investigate. We would need to a way inform the Tern server if behaviors change and I'm sure there are other issues I haven't thought of just yet.

mortalapeman commented 10 years ago

Implemented in a072533