tern
tern copied to clipboard
TernDef can't transverse files from nodejs project
trafficstars
Hopefully I'm missing something, but seems that TernDef can't figure out where a definition is when working within https://github.com/nodejs/node itself. Probably because all the require's are the same as that of core modules. e.g. require('buffer'). (note: I'm using tern_for_vim)
Is there any way to configure tern to look for core modules in, say, the lib/ folder of the project?
You could add a configuration option to the node plugin that can be used to disable the built-in packages, and enable that in the .tern-project for the node source itself. That's a rather specialized case, but if you submit a PR, I'll merge it.