From 3509aa63e27996e1c0372c9500e3ba7f14691f24 Mon Sep 17 00:00:00 2001 From: Max Shen Date: Wed, 24 Jul 2024 23:09:27 +0800 Subject: [PATCH] chore: update default --- README.md | 4 ++-- lua/hardtime/config.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c537094..5224504 100644 --- a/README.md +++ b/README.md @@ -101,11 +101,11 @@ disabled_keys = { | Option Name | Type | Default Valuae | Meaning | | --------------------- | ---------------------------- | ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `max_time` | number | `1000` | Maximum time (in milliseconds) to consider key presses as repeated. | -| `max_count` | number | `2` | Maximum count of repeated key presses allowed within the `max_time` period. | +| `max_count` | number | `3` | Maximum count of repeated key presses allowed within the `max_time` period. | | `disable_mouse` | boolean | `true` | Disable mouse support. | | `hint` | boolean | `true` | Enable hint messages for better commands. | | `notification` | boolean | `true` | Enable notification messages for restricted and disabled keys. | -| `allow_different_key` | boolean | `false` | Allow different keys to reset the count. | +| `allow_different_key` | boolean | `true` | Allow different keys to reset the count. | | `enabled` | boolean | `true` | Whether the plugin is enabled by default or not. | | `resetting_keys` | table of strings/table pair | [See Config](https://github.com/m4xshen/hardtime.nvim/blob/main/lua/hardtime/config.lua) | Keys in what modes that reset the count. | | `restricted_keys` | table of strings/table pair | [See Config](https://github.com/m4xshen/hardtime.nvim/blob/main/lua/hardtime/config.lua) | Keys in what modes triggering the count mechanism. | diff --git a/lua/hardtime/config.lua b/lua/hardtime/config.lua index 4594145..366bd01 100644 --- a/lua/hardtime/config.lua +++ b/lua/hardtime/config.lua @@ -2,11 +2,11 @@ local M = {} M.config = { max_time = 1000, - max_count = 2, + max_count = 3, disable_mouse = true, hint = true, notification = true, - allow_different_key = false, + allow_different_key = true, enabled = true, resetting_keys = { ["1"] = { "n", "x" },