From 0e7921de4c90b98b9611645d3170f43c1c14cfb1 Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 6 Mar 2024 19:17:56 +0530 Subject: [PATCH] add hardtime --- config/default.nix | 1 + config/utils/hardtime.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 config/utils/hardtime.nix diff --git a/config/default.nix b/config/default.nix index 6e22ab2..ae82d74 100644 --- a/config/default.nix +++ b/config/default.nix @@ -54,5 +54,6 @@ ./utils/better-escape.nix ./utils/flash.nix + ./utils/hardtime.nix ]; } diff --git a/config/utils/hardtime.nix b/config/utils/hardtime.nix new file mode 100644 index 0000000..3d6e731 --- /dev/null +++ b/config/utils/hardtime.nix @@ -0,0 +1,27 @@ +{ + plugins.hardtime = { + enable = true; + enabled = false; + disableMouse = true; + disabledFiletypes = ["neo-tree" "qf" "netrw" "NvimTree"]; + hint = true; + maxCount = 4; + maxTime = 1000; + restrictionMode = "hint"; + restrictedKeys = { + "h" = ["n" "x"]; + "j" = ["n" "x"]; + "k" = ["n" "x"]; + "l" = ["n" "x"]; + "-" = ["n" "x"]; + "+" = ["n" "x"]; + "gj" = ["n" "x"]; + "gk" = ["n" "x"]; + "" = ["n" "x"]; + "" = ["n" "x"]; + "" = ["n" "x"]; + "" = ["n" "x"]; + }; + }; +} +