helpers: add globalPrefix to mkPlugin (#284)

This commit is contained in:
Gaétan Lepage 2023-03-24 08:18:45 +01:00 committed by GitHub
parent 2550c919a5
commit 58b6c74e2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 42 deletions

View file

@ -10,27 +10,29 @@ with import ../helpers.nix {inherit lib;};
description = "ledger language features";
package = pkgs.vimPlugins.vim-ledger;
globalPrefix = "ledger_";
options = {
maxWidth = mkDefaultOpt {
global = "ledger_maxwidth";
global = "maxwidth";
description = "Number of columns to display foldtext";
type = types.int;
};
fillString = mkDefaultOpt {
global = "ledger_fillstring";
global = "fillstring";
description = "String used to fill the space between account name and amount in the foldtext";
type = types.int;
};
detailedFirst = mkDefaultOpt {
global = "ledger_detailed_first";
global = "detailed_first";
description = "Account completion sorted by depth instead of alphabetically";
type = types.bool;
};
foldBlanks = mkDefaultOpt {
global = "ledger_fold_blanks";
global = "fold_blanks";
description = "Hide blank lines following a transaction on a fold";
type = types.bool;
};