tzachar / cmp-tabnine

TabNine plugin for hrsh7th/nvim-cmp
MIT License
287 stars 28 forks source link

Debug logs & pro api token? #12

Closed ThePrimeagen closed 2 years ago

ThePrimeagen commented 2 years ago

I have been trying to get this to work for a bit and I seem unable to. Is there a nice way to debug what's happening (I am getting no tabnine completion).

Also, what is the way to use the pro api token? I have read through the source and the term token, Token, TOKEN, do not seem to exist. Not sure where to go with it :) (And its not mentioned in the config.lua source code where I thought it would be).

ThePrimeagen commented 2 years ago

So, for whatever reason things are working... which is a bit surprising. But now onto the api token. What is the best way to provide the api token? When I google it, i just get terrible results. I read through the code and I don't see any references. Please forgive me, I am new :)

ThePrimeagen commented 2 years ago

I just realized I never checked my XDG path... umm.. yeah there are plenty of spots in which there is an api key available. Please disregard this and pretend I didn't say anything...

tzachar commented 2 years ago

Glad you managed to get it working. As for configuration of TabNine, for future reference, you can type in any buffer TabNine::config, which should open a browser window to config TabNine (assuming you are editing on a desktop). Cheers.

zhongjis commented 2 years ago

@tzachar Sorry to dig this up again, but do you mind elaborate where to input this TabNine::config command? I tried in editor command with : but looks like it doesn't work this way lol Screen Shot 2021-11-19 at 11 01 28

tzachar commented 2 years ago

Just open a new buffer, and type TabNine::config inside neovim. A tab in your browser should pop up.

zhongjis commented 2 years ago

Just open a new buffer, and type TabNine::config inside neovim. A tab in your browser should pop up.

Thank you it worked! XD

Just in case if there's any other newbie like me trying to figure this out. What I did basically just -> open a new buffer -> i (insert mode) -> type TabNine::Config. Then boom, the tab is opened (tbh I never thought it would work like this lol)

The following pic is the message I see in nvim Screen Shot 2021-11-19 at 16 23 14