nix-community.nixvim/tests/test-sources/modules
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
..
performance lib: segregate and deprecate functions that need pkgs 2024-09-13 19:05:26 +01:00
autocmd.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
clipboard.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
commands.nix modules/commands: allow commands to be raw lua 2024-05-21 14:27:49 +02:00
diagnostics.nix modules/diagnostics: add test 2024-06-21 16:10:27 +02:00
editorconfig.nix editorconfig: Migrate to builtin plugin (#335) 2023-04-15 15:21:25 +02:00
extra-files.nix modules: refactor extraFiles 2024-07-07 16:42:47 +01:00
files.nix modules/files: fix creating configs of vim type 2024-07-19 14:45:34 +03:00
filetypes.nix tests: remove special treatment of module 2024-08-20 01:07:21 +01:00
highlight.nix tests: fix occurences of deprecated "options" option 2024-03-30 14:21:21 +01:00
keymaps.nix keymaps: remove remaining usages of deprecated lua option 2024-05-27 14:57:40 +02:00
lua-loader.nix tests: remove special treatment of module 2024-08-20 01:07:21 +01:00
options.nix tests: fix occurences of deprecated "options" option 2024-03-30 14:21:21 +01:00
output.nix tests: remove special treatment of module 2024-08-20 01:07:21 +01:00