2023-02-20 11:42:13 +01:00
|
|
|
{
|
|
|
|
lib,
|
2024-02-09 14:21:22 +01:00
|
|
|
config,
|
|
|
|
helpers,
|
2023-11-06 15:04:08 +01:00
|
|
|
pkgs,
|
2023-02-20 11:42:13 +01:00
|
|
|
...
|
2024-02-09 14:21:22 +01:00
|
|
|
}:
|
2023-02-20 11:42:13 +01:00
|
|
|
with lib;
|
2024-02-09 14:21:22 +01:00
|
|
|
with helpers.vim-plugin;
|
|
|
|
mkVimPlugin config {
|
2023-02-20 11:42:13 +01:00
|
|
|
name = "ledger";
|
2024-02-13 23:25:13 +01:00
|
|
|
originalName = "vim-ledger";
|
2023-02-20 11:42:13 +01:00
|
|
|
package = pkgs.vimPlugins.vim-ledger;
|
2023-03-24 08:18:45 +01:00
|
|
|
globalPrefix = "ledger_";
|
2024-02-12 12:22:23 +01:00
|
|
|
addExtraConfigRenameWarning = true;
|
2023-03-24 08:18:45 +01:00
|
|
|
|
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
|
|
|
}
|