ayamir / nvimdots

A well configured and structured Neovim.
BSD 3-Clause "New" or "Revised" License
2.82k stars 451 forks source link

Allow format timeouts to be set individually #1273

Closed misumisumi closed 6 hours ago

misumisumi commented 4 weeks ago

Feature description

Currently, the timeout for format on save is set to a uniform 1000 ms. (code) Some formatters require more than 1000 ms to complete, causing a timeout error.

Can this be modified so that it can be set per formatter or inherits the timeout setting for none-ls?

Additional information

No response

ayamir commented 4 weeks ago

We can make it a configurable option which applies for all formatter. IMO no need to use none-ls to configure it b/c it's lsp that is used instead of the formatter from none-ls for some language.

Jint-lzxy commented 6 hours ago

1275