mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
|
{
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|