nix-community.nixvim/plugins/by-name/parinfer-rust/default.nix

32 lines
756 B
Nix
Raw Normal View History

2024-02-15 09:16:42 +01:00
{
lib,
helpers,
...
}:
2024-12-22 09:58:27 +00:00
lib.nixvim.plugins.mkVimPlugin {
2024-02-15 09:16:42 +01:00
name = "parinfer-rust";
globalPrefix = "parinfer_";
2024-05-05 19:39:35 +02:00
maintainers = [ lib.maintainers.GaetanLepage ];
2024-02-15 09:16:42 +01:00
settingsOptions = {
2024-05-05 19:39:35 +02:00
mode =
helpers.defaultNullOpts.mkEnumFirstDefault
[
"smart"
"indent"
"paren"
]
''
The mode used to process buffer changes.
'';
2024-02-15 09:16:42 +01:00
force_balance = helpers.defaultNullOpts.mkBool false ''
In smart mode and indent mode, parinfer will sometimes leave unbalanced brackets around the
cursor and fix them when the cursor moves away.
When this option is set to `true`, the brackets will be fixed immediately (and fixed again
when text is inserted).
'';
};
}