Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make tern auto start? #182

Open
asilvadesigns opened this issue Oct 6, 2017 · 2 comments
Open

How to make tern auto start? #182

asilvadesigns opened this issue Oct 6, 2017 · 2 comments

Comments

@asilvadesigns
Copy link

Tern will not start unless I type tern before opening neovim or vim.

How to fix this? thanks!

@stevanmilic
Copy link

stevanmilic commented Oct 7, 2017

Try: let g:tern#command = ['tern']

@pourya7
Copy link

pourya7 commented Apr 12, 2019

I know I might be a little late to answer this here... but just for the record:
No param:
let g:tern#command = ['tern']

To specify a host to listen on. Defaults to 127.0.0.1. Pass null or any to listen on all available hosts.:
let g:tern#command = ['tern', '--host xxxx']

To specify a port to listen on, instead of the default behaviour of letting the OS pick a random unused port:
let g:tern#command = ['tern', '--port xxxx']

What I use:
let g:tern#command = ['tern', '--no-port-file --persistent']

The following command-line flags are supported:
--port <number> Specify a port to listen on, instead of the default behaviour of letting the OS pick a random unused port.
--host <host> Specify a host to listen on. Defaults to 127.0.0.1. Pass null or any to listen on all available hosts.
--persistent By default, the server will shut itself down after five minutes of inactivity. Pass it this option to disable auto-shutdown.
--ignore-stdin By default, the server will close when its standard input stream is closed. Pass this flag to disable that behaviour.
--verbose Will cause the server to spit out information about the requests and responses that it handles, and any errors that are raised. Useful for debugging.

source: http://ternjs.net/doc/manual.html#server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants