Exafunction / codeium.vim

Free, ultrafast Copilot alternative for Vim and Neovim
https://codeium.com
MIT License
4.3k stars 157 forks source link

Undocumented idle delay variable #135

Closed Cy-r0 closed 1 year ago

Cy-r0 commented 1 year ago

Hello,

I was looking for a way to insert a delay before triggering Codeium suggestions, and found this:

https://github.com/Exafunction/codeium.vim/blob/679e69465941451790e71b44109e07bcf1aa1571/autoload/codeium.vim#L363

This variable does exactly what I wanted, but it's not mentioned anywhere in the README or in the help page (:h codeium).

Is there a specific reason? Am I not supposed to use this variable?

pqn commented 1 year ago

This delay helps us debounce requests to reduce unnecessary load. If you'd like to make it configurable/submit a PR to that effect, that sounds reasonable, as long as 75ms is the minimum.

pqn commented 1 year ago

Actually I misspoke, this debouncing is now handled in the language server binary. So you're free to set it to whatever you like.

fortenforge commented 1 year ago

I don't really see a need to expose this, but feel free to submit a PR if you'd like to document it / make it configurable. As Prem said, the minimum will always be 75 ms regardless of what it's set to.

Cy-r0 commented 1 year ago

thanks for the info, I submitted a pull request (#138).