mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-05 14:54:33 +02:00
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
45 lines
1,005 B
Nix
45 lines
1,005 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_";
|
|
description = "A plugin that makes exiting insert mode easy and distraction free!";
|
|
|
|
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;
|
|
};
|
|
}
|