2021-03-18 10:03:55 +00:00
|
|
|
{ pkgs, lib, ... }@args:
|
2023-01-25 00:03:26 +00:00
|
|
|
with lib; with import ../helpers.nix { lib = lib; };
|
2021-03-18 10:03:55 +00:00
|
|
|
mkPlugin args {
|
|
|
|
name = "ledger";
|
|
|
|
description = "Enable ledger language features";
|
2023-01-19 10:45:15 +00:00
|
|
|
package = pkgs.vimPlugins.vim-ledger;
|
2021-03-18 10:03:55 +00:00
|
|
|
|
|
|
|
options = {
|
|
|
|
maxWidth = mkDefaultOpt {
|
|
|
|
global = "ledger_maxwidth";
|
|
|
|
description = "Number of columns to display foldtext";
|
|
|
|
type = types.int;
|
|
|
|
};
|
|
|
|
|
|
|
|
fillString = mkDefaultOpt {
|
|
|
|
global = "ledger_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";
|
|
|
|
description = "Account completion sorted by depth instead of alphabetically";
|
|
|
|
type = types.bool;
|
|
|
|
};
|
|
|
|
|
|
|
|
foldBlanks = mkDefaultOpt {
|
|
|
|
global = "ledger_fold_blanks";
|
|
|
|
description = "Hide blank lines following a transaction on a fold";
|
|
|
|
type = types.bool;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|