Closed wizzup closed 7 years ago
If I run tern in another terminal,
$ tern
Listening on port 34195
The error is gone, and completion is working.
but trun
keep shutting down due to idling. I have to run it again and again.
$ tern
Listening on port 34195
Was idle for 5 minutes. Shutting down.
You could use somthing like let g:tern#command = ['node', expand('~').'/lib/tern/bin/tern']
in your .vimrc
solved by let g:tern#command = ['tern']
Sorry to revive this, but you can also do:
let g:tern#command = [ '${pkgs.nodePackages.tern}/bin/tern' ]
if you don't want to rely on your user environment and you're using vim_configurable.
I am on NixOS and neovim.
I have
tern
available in my development shell (nix-shell).I get following error in vim when run
:TernDoc
Is there any configuration can I set to make use of
tern
in my $PATH instead of the one in plugin directory so I can have only singletern
installation?This is how I install plugin in
$MYVIMRC
using vim-plug.