tzachar / cmp-tabnine

TabNine plugin for hrsh7th/nvim-cmp
MIT License
286 stars 27 forks source link

Stop tabnine with a command? #101

Closed lordvidex closed 7 months ago

lordvidex commented 1 year ago

Why?

I have recorded high memory usage while using tabnine with neovim and would like to stop it during some programming sessions.

Current Hack

The only way to currently do this is to comment out the tabnine setup function, so that tabnine doesn't get loaded as a plugin in nvim. But, this is very stressful and will require a full restart of the neovim session.

Fix?

It will be a very good feature addition if tabnine can be stopped with a command, so that only the LSP source can be used.

tzachar commented 1 year ago

Right now, the plugin implements an automatic restart policy for the tabnine process. Any implementation would need to take that into account. If you are willing to implement it, I would accept such a PR. Make sure to include both a Stop and a Start command.

Cheers