mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
Merge pull request #259075 from schuelermine/patch/nixos/modules/nano/syntaxHighlight
This commit is contained in:
commit
32817b0b03
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,7 @@ in
|
|||
|
||||
syntaxHighlight = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
default = true;
|
||||
description = lib.mdDoc "Whether to enable syntax highlight for various languages.";
|
||||
};
|
||||
};
|
||||
|
@ -40,6 +40,7 @@ in
|
|||
etc.nanorc.text = (lib.optionalString cfg.syntaxHighlight ''
|
||||
# load syntax highlighting files
|
||||
include "${cfg.package}/share/nano/*.nanorc"
|
||||
include "${cfg.package}/share/nano/extra/*.nanorc"
|
||||
'') + cfg.nanorc;
|
||||
systemPackages = [ cfg.package ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue