mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-13 10:44:34 +02:00
added formatter + reformat existing codebase (#175)
This commit is contained in:
parent
0bf4313f22
commit
264de8cefb
96 changed files with 3727 additions and 3341 deletions
|
@ -1,33 +1,38 @@
|
|||
{ pkgs, lib, ... }@args:
|
||||
with lib; with import ../helpers.nix { inherit lib; };
|
||||
mkPlugin args {
|
||||
name = "ledger";
|
||||
description = "Enable ledger language features";
|
||||
package = pkgs.vimPlugins.vim-ledger;
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
} @ args:
|
||||
with lib;
|
||||
with import ../helpers.nix {inherit lib;};
|
||||
mkPlugin args {
|
||||
name = "ledger";
|
||||
description = "Enable ledger language features";
|
||||
package = pkgs.vimPlugins.vim-ledger;
|
||||
|
||||
options = {
|
||||
maxWidth = mkDefaultOpt {
|
||||
global = "ledger_maxwidth";
|
||||
description = "Number of columns to display foldtext";
|
||||
type = types.int;
|
||||
};
|
||||
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;
|
||||
};
|
||||
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;
|
||||
};
|
||||
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;
|
||||
foldBlanks = mkDefaultOpt {
|
||||
global = "ledger_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