plugins/autoclose: init + tests (#994)

This commit is contained in:
garaiza-93 2024-02-03 05:33:10 -06:00 committed by GitHub
parent 9d3ff56ed8
commit 7eefcfa5ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 148 additions and 4 deletions

View 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;
};
};
};
}