mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-29 20:04:28 +02:00
plugins/autoclose: init + tests (#994)
This commit is contained in:
parent
9d3ff56ed8
commit
7eefcfa5ee
3 changed files with 148 additions and 4 deletions
71
tests/test-sources/plugins/utils/autoclose-nvim.nix
Normal file
71
tests/test-sources/plugins/utils/autoclose-nvim.nix
Normal file
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
empty = {plugins.autoclose.enable = true;};
|
||||
|
||||
defaults = {
|
||||
plugins.autoclose.enable = true;
|
||||
plugins.autoclose = {
|
||||
keys = {
|
||||
"(" = {
|
||||
escape = false;
|
||||
close = true;
|
||||
pair = "()";
|
||||
};
|
||||
"[" = {
|
||||
escape = false;
|
||||
close = true;
|
||||
pair = "[]";
|
||||
};
|
||||
"{" = {
|
||||
escape = false;
|
||||
close = true;
|
||||
pair = "{}";
|
||||
};
|
||||
|
||||
">" = {
|
||||
escape = true;
|
||||
close = false;
|
||||
pair = "<>";
|
||||
};
|
||||
")" = {
|
||||
escape = true;
|
||||
close = false;
|
||||
pair = "()";
|
||||
};
|
||||
"]" = {
|
||||
escape = true;
|
||||
close = false;
|
||||
pair = "[]";
|
||||
};
|
||||
"}" = {
|
||||
escape = true;
|
||||
close = false;
|
||||
pair = "{}";
|
||||
};
|
||||
"\"" = {
|
||||
escape = true;
|
||||
close = true;
|
||||
pair = ''""'';
|
||||
};
|
||||
"'" = {
|
||||
escape = true;
|
||||
close = true;
|
||||
pair = "''";
|
||||
};
|
||||
"`" = {
|
||||
escape = true;
|
||||
close = true;
|
||||
pair = "``";
|
||||
};
|
||||
};
|
||||
|
||||
options = {
|
||||
disabledFiletypes = ["text"];
|
||||
disableWhenTouch = false;
|
||||
touchRegex = "[%w(%[{]";
|
||||
pairSpaces = false;
|
||||
autoIndent = true;
|
||||
disableCommandMode = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue