2023-02-20 11:42:13 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
} @ args:
|
|
|
|
with lib;
|
|
|
|
with import ../helpers.nix {inherit lib;};
|
|
|
|
mkPlugin args {
|
|
|
|
name = "ledger";
|
2023-02-23 17:10:02 +01:00
|
|
|
description = "ledger language features";
|
2023-02-20 11:42:13 +01:00
|
|
|
package = pkgs.vimPlugins.vim-ledger;
|
2021-03-18 10:03:55 +00:00
|
|
|
|
2023-03-24 08:18:45 +01:00
|
|
|
globalPrefix = "ledger_";
|
|
|
|
|
2023-02-20 11:42:13 +01:00
|
|
|
options = {
|
|
|
|
maxWidth = mkDefaultOpt {
|
2023-03-24 08:18:45 +01:00
|
|
|
global = "maxwidth";
|
2023-02-20 11:42:13 +01:00
|
|
|
description = "Number of columns to display foldtext";
|
|
|
|
type = types.int;
|
|
|
|
};
|
2021-03-18 10:03:55 +00:00
|
|
|
|
2023-02-20 11:42:13 +01:00
|
|
|
fillString = mkDefaultOpt {
|
2023-03-24 08:18:45 +01:00
|
|
|
global = "fillstring";
|
2023-02-20 11:42:13 +01:00
|
|
|
description = "String used to fill the space between account name and amount in the foldtext";
|
|
|
|
type = types.int;
|
|
|
|
};
|
2021-03-18 10:03:55 +00:00
|
|
|
|
2023-02-20 11:42:13 +01:00
|
|
|
detailedFirst = mkDefaultOpt {
|
2023-03-24 08:18:45 +01:00
|
|
|
global = "detailed_first";
|
2023-02-20 11:42:13 +01:00
|
|
|
description = "Account completion sorted by depth instead of alphabetically";
|
|
|
|
type = types.bool;
|
|
|
|
};
|
2021-03-18 10:03:55 +00:00
|
|
|
|
2023-02-20 11:42:13 +01:00
|
|
|
foldBlanks = mkDefaultOpt {
|
2023-03-24 08:18:45 +01:00
|
|
|
global = "fold_blanks";
|
2023-02-20 11:42:13 +01:00
|
|
|
description = "Hide blank lines following a transaction on a fold";
|
|
|
|
type = types.bool;
|
|
|
|
};
|
2021-03-18 10:03:55 +00:00
|
|
|
};
|
2023-02-20 11:42:13 +01:00
|
|
|
}
|