nix-community.nixvim/lib
Matt Sturgeon 4e5bd1d79b
lib: segregate and deprecate functions that need pkgs
Splits everything that depends on a `pkgs` instance into an optional
attrs, allowing `helpers.nix` to be bootstrapped without `pkgs`.

This required some refactoring:
- `modules.specialArgs` is only available when `pkgs` is used
- `modules.specialArgsWith` now requires `defaultPkgs` be provided
- `builders.*` now have `*With` variants that take `pkgs` as an argument
  and a `withPkgs` function that returns the old interface
- Had to define the fixed part of `builders` outside the attrs for now,
  to avoid infinite recursion.
- The old `builders` are now deprecated, and print a warning when
  evaluated
- `withOptoinalFns` was introduced to merge the optional attrs into the
  final lib.
2024-09-13 19:05:26 +01:00
..
autocmd-helpers.nix lib: cleanup with lib 2024-09-03 22:12:33 -05:00
builders.nix lib: segregate and deprecate functions that need pkgs 2024-09-13 19:05:26 +01:00
default.nix lib: segregate and deprecate functions that need pkgs 2024-09-13 19:05:26 +01:00
deprecation.nix lib: cleanup with lib 2024-09-03 22:12:33 -05:00
extend-lib.nix lib: use lib.fix and self internally 2024-09-13 17:25:17 +01:00
keymap-helpers.nix lib: cleanup with lib 2024-09-03 22:12:33 -05:00
maintainers.nix maintainers: add insipx 2024-09-02 02:05:40 -04:00
modules.nix lib: segregate and deprecate functions that need pkgs 2024-09-13 19:05:26 +01:00
neovim-plugin.nix lib: cleanup with lib 2024-09-03 22:12:33 -05:00
options.nix lib: add types.flagInt + defaultNullOpts.mkIntFlag 2024-09-08 12:54:30 +01:00
pkg-lists.nix lib/pkg-lists: move to common location 2024-09-04 20:29:52 +01:00
tests.nix lib: rename helpers.nix -> default.nix 2024-09-13 17:25:17 +01:00
to-lua.nix lib: cleanup with lib 2024-09-03 22:12:33 -05:00
types.nix lib/types: simplify eitherRecursive by defining it only once 2024-09-12 14:44:54 +01:00
utils.nix lib: cleanup with lib 2024-09-03 22:12:33 -05:00
vim-plugin.nix lib: cleanup with lib 2024-09-03 22:12:33 -05:00