nix-community.nixvim/plugins/by-name/parinfer-rust/default.nix
osbm a41559f093
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
treewide: add plugin descriptions
2025-06-24 06:10:11 +00:00

32 lines
823 B
Nix

{
lib,
helpers,
...
}:
lib.nixvim.plugins.mkVimPlugin {
name = "parinfer-rust";
globalPrefix = "parinfer_";
description = "Infer parentheses for Clojure, Lisp and Scheme.";
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).
'';
};
}