TabbyML / vim-tabby

Apache License 2.0
38 stars 2 forks source link

Configuration options for Debounce #13

Closed V4G4X closed 3 months ago

V4G4X commented 4 months ago

I was hoping this would be an option in ~/.tabby-client/agent/config.toml.

But this didn't mention anything.
So maybe it is IDE-specific.

If that's the case, please add the configuration option for the nvim plugin.

As you can tell, I'd prefer fewer auto-completion prompts when I type, and this seems like a standard enough configuration.

icycodes commented 3 months ago

Hi, @V4G4X

You can try adding the following configuration in your ~/.tabby-client/agent/config.toml file:

[completion.debounce]
mode = "fixed"
interval = 1000 # ms

Some unstable or infrequently used configurations are not included in the standard config template and documentation for the sake of brevity and readability. For more information, please refer to the Tabby source code at: https://github.com/TabbyML/tabby/blob/main/clients/tabby-agent/src/AgentConfig.ts https://github.com/TabbyML/tabby/blob/main/clients/tabby-agent/src/configFile.ts

V4G4X commented 3 months ago

Yeah I think I'm getting fewer prompts with this.
Thanks a lot @icycodes!