mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
plugins/autoclose: migrate to mkNeovimPlugin
This commit is contained in:
parent
8f8f50243e
commit
ccd0092988
4 changed files with 136 additions and 139 deletions
|
@ -1,73 +0,0 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -2,4 +2,75 @@
|
|||
empty = {
|
||||
plugins.autoclose.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.autoclose = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
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 = {
|
||||
disabled_filetypes = [ "text" ];
|
||||
disable_when_touch = false;
|
||||
touch_regex = "[%w(%[{]";
|
||||
pair_spaces = false;
|
||||
auto_indent = true;
|
||||
disable_command_mode = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue