nix-community.nixvim/plugins/languages/parinfer-rust.nix
Matt Sturgeon 1fd4b6c739
plugins: migrate defaultPackage -> package
Migrate all users of `mkVimPlugin` and `mkNeovimPlugin` to use the new
`package` argument instead of the old `defaultPackage` argument.
2024-09-04 03:29:34 +01:00

31 lines
756 B
Nix

{
lib,
helpers,
...
}:
helpers.vim-plugin.mkVimPlugin {
name = "parinfer-rust";
globalPrefix = "parinfer_";
maintainers = [ lib.maintainers.GaetanLepage ];
settingsOptions = {
mode =
helpers.defaultNullOpts.mkEnumFirstDefault
[
"smart"
"indent"
"paren"
]
''
The mode used to process buffer changes.
'';
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).
'';
};
}