mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 08:44:32 +02:00
plugins/better-escape: switch to mkNeovimPlugin + update
This commit is contained in:
parent
95dade6292
commit
3b6d403f39
2 changed files with 111 additions and 48 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue