mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
helpers: add globalPrefix to mkPlugin (#284)
This commit is contained in:
parent
2550c919a5
commit
58b6c74e2f
5 changed files with 48 additions and 42 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue