nix-community.nixvim/tests/test-sources/plugins/by-name/better-escape/default.nix
2024-09-09 11:50:38 +01:00

47 lines
783 B
Nix

{
empty = {
plugins.better-escape.enable = true;
};
defaults = {
plugins.better-escape = {
enable = true;
settings = {
timeout = "vim.o.timeoutlen";
default_mappings = true;
mappings = {
i.j = {
k = "<Esc>";
j = "<Esc>";
};
c.j = {
k = "<Esc>";
j = "<Esc>";
};
t.j = {
k = "<Esc>";
j = "<Esc>";
};
v.j.k = "<Esc>";
s.j.k = "<Esc>";
};
};
};
};
example = {
plugins.better-escape = {
enable = true;
settings = {
mappings.i.j = {
k = "<Esc>";
j = "<Esc>";
};
timeout = 150;
};
};
};
}