-
this is my setup. I want arrows to be restricted in all of the modes except Insert where arrows should be disabled. require("hardtime").setup(
{
disabled_keys =
{
["<Up>"] = { "i" },
["<Down>"] = { "i" },
["<Left>"] = { "i" },
["<Right>"] = { "i" },
},
restricted_keys =
{
["<Up>"] = { "" },
["<Down>"] = { "" },
["<Left>"] = { "" },
["<Right>"] = { "" },
},
}) Also on another note, I tried to restrict arrows in Insert and this didnt do anything (they are restricted in normal but not in Insert) require("hardtime").setup(
{
disabled_keys =
{
["<Up>"] = { },
["<Down>"] = { },
["<Left>"] = { },
["<Right>"] = { },
},
restricted_keys =
{
["<Up>"] = { "", "i" },
["<Down>"] = { "" , "i" },
["<Left>"] = { "" , "i"},
["<Right>"] = { "" , "i"},
},
}) |
Beta Was this translation helpful? Give feedback.
Answered by
m4xshen
Aug 24, 2024
Replies: 1 comment
-
Hi @HubiBoar, hardtime.nvim currently doesn't support |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
HubiBoar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @HubiBoar, hardtime.nvim currently doesn't support
restricted_keys
in insert mode. I'll try to implement this in the future!