mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 03:34:31 +02:00
plugins/better-escape: init + tests (#626)
* adding better escape * fixing formatting * fixing tests * fixing comments from pr * fixing comments from pr * Update tests/test-sources/plugins/utils/better-escape.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> * Update plugins/utils/better-escape.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> * Update plugins/utils/better-escape.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> * Update plugins/utils/better-escape.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> * Update plugins/utils/better-escape.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> * Update plugins/utils/better-escape.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> * fixing comments from pr --------- Co-authored-by: Haseeb Majid <haseeb.majid@imaginecurve.com> Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
parent
752f0481ce
commit
bab56daddb
3 changed files with 95 additions and 0 deletions
16
tests/test-sources/plugins/utils/better-escape.nix
Normal file
16
tests/test-sources/plugins/utils/better-escape.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.better-escape.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.better-escape = {
|
||||
enable = true;
|
||||
|
||||
mapping = ["jj" "jk"];
|
||||
timeout = 150;
|
||||
clearEmptyLines = false;
|
||||
keys = "<ESC>";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue