Skip to content

Commit

Permalink
feat(config): lower default timeout to 10 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
tmillr committed Sep 13, 2024
1 parent 2943f26 commit bc505d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ require("sos").setup {
enabled = true,

-- Time in ms after which `on_timer()` will be called. By default, `on_timer()`
-- is called 20 seconds after the last buffer change. Whenever an observed
-- is called 10 seconds after the last buffer change. Whenever an observed
-- buffer changes, the global timer is started (or reset, if it was already
-- started), and a countdown of `timeout` milliseconds begins. Further buffer
-- changes will then debounce the timer. After firing, the timer is not
-- started again until the next buffer change.
timeout = 20000,
timeout = 10000,

-- Set, and manage, Vim's 'autowrite' option (see :h 'autowrite'). Allowing
-- sos to "manage" the option makes it so that all autosaving functionality
Expand Down
2 changes: 1 addition & 1 deletion lua/sos/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

local defaults = {
enabled = true,
timeout = 20000,
timeout = 10000,
autowrite = true,
save_on_cmd = 'some',
save_on_bufleave = true,
Expand Down

0 comments on commit bc505d1

Please sign in to comment.