Overlays: Difference between revisions

imported>Gytis-ivaskevicius
No edit summary
imported>Pinpox
add vimPlugins example overlay
Line 226: Line 226:
     }
     }
   );
   );
}
</syntaxhighlight>
=== Overriding a package inside an attribute set ===
Here is an example of adding plugins to `vimPlugins`.
<syntaxhighlight lang="nix">
self: super: {
  vimPlugins = super.vimPlugins // {
    indent-blankline-nvim-lua =
      super.pkgs.callPackage ../packages/indent-blankline-nvim-lua { };
  };
}
}
</syntaxhighlight>
</syntaxhighlight>