mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
44 lines
919 B
Nix
44 lines
919 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib.nixvim) defaultNullOpts;
|
|
inherit (lib) types;
|
|
in
|
|
lib.nixvim.plugins.mkVimPlugin {
|
|
name = "easyescape";
|
|
packPathName = "vim-easyescape";
|
|
package = "vim-easyescape";
|
|
globalPrefix = "easyescape_";
|
|
|
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
|
|
|
settingsOptions = {
|
|
chars = defaultNullOpts.mkAttrsOf' {
|
|
type = types.ints.unsigned;
|
|
pluginDefault = {
|
|
j = 1;
|
|
k = 1;
|
|
};
|
|
example = {
|
|
j = 2;
|
|
};
|
|
description = ''
|
|
Which keys can be used to escape insert mode and how many times they need to be pressed.
|
|
'';
|
|
};
|
|
|
|
timeout = defaultNullOpts.mkUnsignedInt 100 ''
|
|
The unit of timeout is in ms.
|
|
|
|
A very small timeout makes an input of real `jk` or `kj` possible (Python3 is required for
|
|
this feature)!
|
|
'';
|
|
};
|
|
|
|
settingsExample = {
|
|
chars.j = 2;
|
|
timeout = 2000;
|
|
};
|
|
}
|