mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
misc: allow null in extraPackages
This commit is contained in:
parent
c826d146c6
commit
f2f97d844b
13 changed files with 22 additions and 39 deletions
|
@ -213,12 +213,11 @@ in {
|
|||
if cfg.nixGrammars
|
||||
then [(cfg.package.withPlugins (_: cfg.grammarPackages))]
|
||||
else [cfg.package];
|
||||
extraPackages = with pkgs;
|
||||
[
|
||||
tree-sitter
|
||||
nodejs
|
||||
]
|
||||
++ optional (cfg.gccPackage != null) cfg.gccPackage;
|
||||
extraPackages = with pkgs; [
|
||||
tree-sitter
|
||||
nodejs
|
||||
cfg.gccPackage
|
||||
];
|
||||
|
||||
opts = mkIf cfg.folding {
|
||||
foldmethod = "expr";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue