plugins/better-escape: switch to mkNeovimPlugin + update

This commit is contained in:
Gaetan Lepage 2024-07-23 00:01:09 +02:00 committed by Gaétan Lepage
parent 95dade6292
commit 3b6d403f39
2 changed files with 111 additions and 48 deletions

View file

@ -3,17 +3,45 @@
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;
mapping = [
"jj"
"jk"
];
timeout = 150;
clearEmptyLines = false;
keys = "<ESC>";
settings = {
mappings.i.j = {
k = "<Esc>";
j = "<Esc>";
};
timeout = 150;
};
};
};
}