-
Notifications
You must be signed in to change notification settings - Fork 31
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
[FEATURE] Supply auth_cmd #176
Comments
@erichlf are you referring to api keys given to old pro users? |
Sorry I mean AUTH Token. I have corrected the description. |
The auth token lives for 1 hour so this won't work. What other plugins do? |
A nice workaround could be to mount |
That is good to know. |
Does it work for you? |
I have to figure out why when I bind mount the directory, or use it as a volume it becomes owned by root and I don't have permissions to do anything with it. |
The issue is that if [[ -d $HOME/.config && ! $(stat -c "%U" $HOME/.config) == "$(whoami)" ]]; then
sudo chown $UID $HOME/.config
fi Once I got the permissions fixed then I was able to get neovim up and running and then I saw that tabnine was working. |
Closing this |
Is your feature request related to a problem? Please describe.
My development environment is in docker containers and so every time I restart a docker container I have to re-authorize tabnine. It would be nice if there could be an automated way to authorize the tabnine plugin.
Describe the solution you'd like
Add the ability to supply an
auth_cmd
where the output of this command is a string containing the authorization token. I tend to store authorization tokens and api keys in gnu pass and so one possible command would bepass show tabnine/auth_token
. But this command could be anything that results in a string that is the auth token.Describe alternatives you've considered
I would consider most anything that makes it where I don't have to manually enter the auth token. However, solutions like storing in an environment variable should be avoided.
The text was updated successfully, but these errors were encountered: