nix-community.nixvim/tests/test-sources/plugins/by-name/better-escape/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
783 B
Nix
Raw Normal View History

{
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;
};
};
};
}