codota / tabnine-nvim

Tabnine Client for Neovim
https://tabnine.com
342 stars 31 forks source link

Codelens #137

Closed amirbilu closed 9 months ago

amirbilu commented 10 months ago

This PR adds Tabnine code lens, a hint next to method / function signature which suggests that Tabnine can explain / fix / test the code. @aarondill can you please take a look? would appreciate also your feedback on the UX - as its not final.

https://github.com/codota/tabnine-nvim/assets/7681048/7d8dd17b-37d4-4db1-accc-0edd5af9152c

aarondill commented 10 months ago

can we add a config toggle for this please? just something like codelens_enabled which defaults to true. the other option is to add a chat_enabled, which also defaults to true, that codelens respects (since it's technically a Chat feature)

also, have you tested what happens when you use this without first compiling Chat?

amirbilu commented 10 months ago

@aarondill what do you generally feel about this feature? Would you use it?

aarondill commented 10 months ago

@aarondill what do you generally feel about this feature? Would you use it?

I personally would not use it, however I don't use Chat either. I can see the appeal, but I use Tabnine solely as code completion/generation, instead of a general LLM.