nix-community.nixvim/plugins/languages/ledger.nix

41 lines
1,009 B
Nix
Raw Permalink Normal View History

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