add hardtime

This commit is contained in:
Aditya 2024-03-06 19:17:56 +05:30
parent 81d32ab609
commit 0e7921de4c
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
2 changed files with 28 additions and 0 deletions

View file

@ -54,5 +54,6 @@
./utils/better-escape.nix
./utils/flash.nix
./utils/hardtime.nix
];
}

27
config/utils/hardtime.nix Normal file
View file

@ -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"];
"<CR>" = ["n" "x"];
"<C-M>" = ["n" "x"];
"<C-N>" = ["n" "x"];
"<C-P>" = ["n" "x"];
};
};
}