1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-25 11:49:40 +01:00
Commit graph

4130 commits

Author SHA1 Message Date
Matt Sturgeon
947cb0aaed wrappers: use importApply to preserve module location
The `import module args` pattern is useful for applying inputs from
outside of the module system, however it discards module location
metadata that is usually associated with file-path modules.

`lib.modules.importApply` solves that problem by wrapping the applied
module using `lib.modules.setDefaultModuleLocation`.

This means documentation, warnings, and errors will show the correct
location.
2025-11-24 11:10:47 +00:00
Matt Sturgeon
453fe40893 tests: throw when helpers is evaluated
Prevent use of deprecated `helpers` within Nixvim's test suite.
2025-11-24 11:09:51 +00:00
Matt Sturgeon
d6e9b258da tests/extended-lib: omit helpers 2025-11-24 11:09:51 +00:00
Matt Sturgeon
ecb843b614 tests/extended-lib: don't build/run nixvim
This is an assertion-only test.
2025-11-24 11:09:51 +00:00
Matt Sturgeon
824e048096 tests/fetch-tests: only apply required args
Using `functionArgs` and `intersectAttrs`, apply only the required args
to test module files.
2025-11-24 11:09:51 +00:00
Matt Sturgeon
12fd9ee1c8 tests/fetch-tests: drop helpers arg
Don't supply `helpers` to test module files.
2025-11-24 11:09:51 +00:00
Heitor Augusto
1d345d4b25 lib/options/mkSettingsOption: use nestedLiteralLua 2025-11-24 10:48:20 +00:00
Matt Sturgeon
7d17c1b71d flake: remove helpers module arg
Not to be confused with the Nixvim-configuration `helpers` module arg,
remove the flake-parts `helpers` module arg.
2025-11-24 10:47:38 +00:00
Matt Sturgeon
3426dd04bb wrappers: use flake-locked lib instead of host's
Previously, we constructed Nixvim's extended lib from the host
configuration's lib.

Naïvely, this potentially allowed fetching fewer Nixpkgs revisions and
instantiating fewer lib instances. However, it also means our `lib`
interface is unstable, especially when the host configuration is using a
different Nixpkgs release to Nixvim.
2025-11-24 01:13:34 +00:00
nixvim-ci[bot]
2606dc7194 flake/dev/flake.lock: Update
Flake lock file updates:

• Updated input 'git-hooks':
    'github:cachix/git-hooks.nix/7275fa67fbbb75891c16d9dee7d88e58aea2d761?narHash=sha256-YG19IyrTdnVn0l3DvcUYm85u3PaqBt6tI6VvolcuHnA%3D' (2025-11-16)
  → 'github:cachix/git-hooks.nix/20e71a403c5de9ce5bd799031440da9728c1cda1?narHash=sha256-uIRqs/H18YEtMOn1OkbnPH%2BaNTwXKx%2BiU3qnxEkVUd0%3D' (2025-11-21)
• Updated input 'home-manager':
    'github:nix-community/home-manager/ea164b7c9ccdc2321379c2ff78fd4317b4c41312?narHash=sha256-8EBEEvtzQ11LCxpQHMNEBQAGtQiCu/pqP9zSovDSbNM%3D' (2025-11-17)
  → 'github:nix-community/home-manager/d10a9b16b2a3ee28433f3d1c603f4e9f1fecb8e1?narHash=sha256-AUc78Qv3sWir0hvbmfXoZ7Jzq9VVL97l%2BsP9Jgms%2BJU%3D' (2025-11-21)
2025-11-22 13:59:25 +00:00
nixvim-ci[bot]
b320797e9d flake.lock: Update
Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/52a2caecc898d0b46b2b905f058ccc5081f842da?narHash=sha256-8oNVE8TrD19ulHinjaqONf9QWCKK%2Bw4url56cdStMpM%3D' (2025-11-12)
  → 'github:hercules-ci/flake-parts/2cccadc7357c0ba201788ae99c4dfa90728ef5e0?narHash=sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q%3D' (2025-11-21)
2025-11-22 13:59:25 +00:00
nixvim-ci[bot]
85939e8768 maintainers: update generated/all-maintainers.nix
Automated update of the master maintainers list combining:
- Nixvim specific maintainers from lib/maintainers.nix
- Nixpkgs maintainers referenced in Nixvim modules

Changes: +7 -0 lines

Generated by: flake/dev/generate-all-maintainers/generate-all-maintainers.py
2025-11-22 09:36:11 +00:00
Arne
416997150b plugins/tiny-glimmer-nvim: init 2025-11-22 09:28:42 +00:00
Arne
318f27bf4d maintainers: add Arne-Zillhardt 2025-11-22 09:28:42 +00:00
nixvim-ci[bot]
e13ceae64f flake/dev/flake.lock: Update
Flake lock file updates:

• Updated input 'dev-nixpkgs':
    'github:NixOS/nixpkgs/6f374686605df381de8541c072038472a5ea2e2d?narHash=sha256-AJHrsT7VoeQzErpBRlLJM1SODcaayp0joAoEA35yiwM%3D' (2025-11-18)
  → 'github:NixOS/nixpkgs/a8d610af3f1a5fb71e23e08434d8d61a466fc942?narHash=sha256-v5afmLjn/uyD9EQuPBn7nZuaZVV9r%2BJerayK/4wvdWA%3D' (2025-11-20)
2025-11-21 12:58:14 +00:00
nixvim-ci[bot]
70cb480446 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/6f374686605df381de8541c072038472a5ea2e2d?narHash=sha256-AJHrsT7VoeQzErpBRlLJM1SODcaayp0joAoEA35yiwM%3D' (2025-11-18)
  → 'github:NixOS/nixpkgs/a8d610af3f1a5fb71e23e08434d8d61a466fc942?narHash=sha256-v5afmLjn/uyD9EQuPBn7nZuaZVV9r%2BJerayK/4wvdWA%3D' (2025-11-20)
2025-11-21 12:58:14 +00:00
Matt Sturgeon
a635b56894 plugins/barbar: add nullOr workaround for keymaps lua warning
Currently, `types.either` has support for the new valueMeta attribute
added by v2 check and merge, while `types.nullOr` does not.

The `lua` option deprecation warning implemented in
`modules/keymaps.nix` requires `valueMeta`, so re-implement `nullOr`
using `types.either` as a workaround.
2025-11-21 09:27:16 +00:00
Matt Sturgeon
d0b0b75a13 modules/keymaps: fix lua option deprecation warning
The deprecation warning for the keymap-submocule `lua` option relied on
`getSubOptions`, however this is fundamentally flawed because that
function returns uses a different module eval from the one that merges
submodule definitions.

Since definitions are not used by `getSubOptions`,
`options.lua.isDefined` will never be true.

Instead, we have two choices:

1. Add a `luaIsDefined` option to the keymap submodule
2. Use the new v2 merge's `valueMeta` to access the actual module eval
2025-11-21 08:21:29 +00:00
NAHO
d73eb6f142 ci: enable stricter Bash error checking
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-11-20 23:22:53 +00:00
Matt Sturgeon
695b0b80f8 lib/overlay: remove overridability
The lib-overlay was previously wrapped using `makeOverridable`, but its
only input is the flake itself, which is not intended to be overridden.

Remove the wrapper and expose the overlay as a plain function.
2025-11-20 20:57:10 +00:00
Matt Sturgeon
c53e0161c3 lib: simplify bootstrapping
Previously, `lib/top-level.nix` used an `_isExtended` flag to indicate
whether the provided `lib` was already extended. This made bootstrapping
unclear and introduced the possibility of circular construction.

All construction now flows through the lib-overlay, removing
`_isExtended`. As a result, `lib/top-level.nix` always receives the
final extended lib.

The `<flake>.lib.nixvim` output is now defined as:

    (lib.extend <nixvim>.lib.overlay).nixvim

The overlay now imports `top-level.nix` directly, making it the
canonical entrypoint for constructing Nixvim's section of the lib.

A clarifying doccomment was added to `lib/top-level.nix`.
2025-11-20 20:57:10 +00:00
Matt Sturgeon
f11c43612f lib/overlay: rename and document overlay arguments
Rename the overlay arguments from the conventional `final: prev:` to the
more explicit `lib: prevLib:`, reflecting that this overlay operates
only on the Nixpkgs lib, rather than a full package set.

Add a doccomment explaining how the overlay is intended to be applied
(via `lib.extend`) and what each argument represents.

Improved inline comments in the overlay.
2025-11-20 20:57:10 +00:00
Matt Sturgeon
f5235d311e lib: rename default.nix to top-level.nix
Rename `lib/default.nix` to `lib/top-level.nix` to make its purpose
explicit and discourage importing it directly. Consumers should obtain
the extended lib via flake outputs or the overlay, rather than bypassing
the required bootstrapping logic.

This clarifies the file's role and avoids suggesting it is the primary
entrypoint to Nixvim's lib subsection.
2025-11-20 20:57:10 +00:00
Thea Schöbl
f4b9a71224 user-configs: add @Theaninova's config 2025-11-20 11:26:41 +00:00
Matt Sturgeon
8d0ca9abc4 lib: move enableExceptInTests impl to build.test option
Simplify the `enableExceptInTests` attribute, removing the
`_nixvimTests` argument.

We now do a full re-eval of the nixvim configuration before building the
test, giving us a central place to implement `enableExceptInTests` and
its eventual replacement(s).

This extends support for `enableExceptInTests` to all methods of getting
a nixvim test derivation. Previously, it only worked when using `mkTestDerivationFromNixvimModule`.

In `tests/main.nix`, we avoid the re-eval by doing the initial eval with
a "test mode" lib from the start.
2025-11-20 00:22:57 +00:00
Matt Sturgeon
7754b4eb1b modules/test: fix passthru example 2025-11-20 00:22:57 +00:00
Matt Sturgeon
82bc02466c lib/evalNixvim: deprecate specialArgs.helpers
This has been soft-deprecated for several releases. Now that we have
removed our internal usage, we can introduce an eval warning.
2025-11-19 15:22:27 +00:00
Matt Sturgeon
dad19c1238 treewide: remove internal use of helpers module arg 2025-11-19 15:22:27 +00:00
Matt Sturgeon
7add68e918 tests/enable-except-in-tests: refactor
More explicitly assert that `enableExceptInTests` is the expected value.
2025-11-19 15:22:27 +00:00
nixvim-ci[bot]
770743284b flake/dev/flake.lock: Update
Flake lock file updates:

• Updated input 'dev-nixpkgs':
    'github:NixOS/nixpkgs/8b6600824693a9c706ef09bd86711ca393703466?narHash=sha256-e81Xfa7xhRZfqGB4s3xEvrg4p1v%2BfToM6CIQlXUyaX0%3D' (2025-11-17)
  → 'github:NixOS/nixpkgs/6f374686605df381de8541c072038472a5ea2e2d?narHash=sha256-AJHrsT7VoeQzErpBRlLJM1SODcaayp0joAoEA35yiwM%3D' (2025-11-18)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/973db96394513fd90270ea5a1211a82a4a0ba47f?narHash=sha256-6p2ljK42s0S8zS0UU59EsEqupz0GVCaBYRylpUadeBM%3D' (2025-11-14)
  → 'github:lnl7/nix-darwin/3bda9f6b14161becbd07b3c56411f1670e19b9b5?narHash=sha256-nJRd4LY2kT3OELfHqdgWjvToNZ4w%2BzKCMzS2R6z4sXE%3D' (2025-11-18)
2025-11-19 12:24:42 +00:00
nixvim-ci[bot]
ad6f25173b flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/8b6600824693a9c706ef09bd86711ca393703466?narHash=sha256-e81Xfa7xhRZfqGB4s3xEvrg4p1v%2BfToM6CIQlXUyaX0%3D' (2025-11-17)
  → 'github:NixOS/nixpkgs/6f374686605df381de8541c072038472a5ea2e2d?narHash=sha256-AJHrsT7VoeQzErpBRlLJM1SODcaayp0joAoEA35yiwM%3D' (2025-11-18)
2025-11-19 12:24:42 +00:00
Matt Sturgeon
6fff5d7fa7 tests: pkgs.systemstdenv.hostPlatform.system
`pkgs.system` is deprecated and prints an eval warning.
2025-11-19 10:54:47 +00:00
nixvim-ci[bot]
7408b72662 flake/dev/flake.lock: Update
Flake lock file updates:

• Updated input 'dev-nixpkgs':
    'github:NixOS/nixpkgs/85a6c4a07faa12aaccd81b36ba9bfc2bec974fa1?narHash=sha256-3YJkOBrFpmcusnh7i8GXXEyh7qZG/8F5z5%2B717550Hk%3D' (2025-11-16)
  → 'github:NixOS/nixpkgs/8b6600824693a9c706ef09bd86711ca393703466?narHash=sha256-e81Xfa7xhRZfqGB4s3xEvrg4p1v%2BfToM6CIQlXUyaX0%3D' (2025-11-17)
• Updated input 'home-manager':
    'github:nix-community/home-manager/3670a78eee49deebe4825fc8ecc46b172d1a8391?narHash=sha256-yvdCYUL85zEDp2NzPUBmaNBXP6KnWEOhAk3j7PTfsKw%3D' (2025-11-16)
  → 'github:nix-community/home-manager/ea164b7c9ccdc2321379c2ff78fd4317b4c41312?narHash=sha256-8EBEEvtzQ11LCxpQHMNEBQAGtQiCu/pqP9zSovDSbNM%3D' (2025-11-17)
2025-11-18 17:11:44 +00:00
nixvim-ci[bot]
a756e89bd1 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/85a6c4a07faa12aaccd81b36ba9bfc2bec974fa1?narHash=sha256-3YJkOBrFpmcusnh7i8GXXEyh7qZG/8F5z5%2B717550Hk%3D' (2025-11-16)
  → 'github:NixOS/nixpkgs/8b6600824693a9c706ef09bd86711ca393703466?narHash=sha256-e81Xfa7xhRZfqGB4s3xEvrg4p1v%2BfToM6CIQlXUyaX0%3D' (2025-11-17)
2025-11-18 17:11:44 +00:00
nixvim-ci[bot]
7a30e6cf25 flake/dev/flake.lock: Update
Flake lock file updates:

• Updated input 'dev-nixpkgs':
    'github:NixOS/nixpkgs/1d4c88323ac36805d09657d13a5273aea1b34f0c?narHash=sha256-esRhOS0APE6k40Hs/jjReXg%2Brx%2BJ5LkWw7cuWFKlwYA%3D' (2025-11-15)
  → 'github:NixOS/nixpkgs/85a6c4a07faa12aaccd81b36ba9bfc2bec974fa1?narHash=sha256-3YJkOBrFpmcusnh7i8GXXEyh7qZG/8F5z5%2B717550Hk%3D' (2025-11-16)
• Updated input 'git-hooks':
    'github:cachix/git-hooks.nix/84255025dee4c8701a99fbff65ac3c9095952f99?narHash=sha256-M%2B2QBQoC0lzkCdUQRXylR2RkcT6BCRfW3KDs%2Bc/IGLw%3D' (2025-11-13)
  → 'github:cachix/git-hooks.nix/7275fa67fbbb75891c16d9dee7d88e58aea2d761?narHash=sha256-YG19IyrTdnVn0l3DvcUYm85u3PaqBt6tI6VvolcuHnA%3D' (2025-11-16)
• Updated input 'home-manager':
    'github:nix-community/home-manager/96156a9e86281c4bfc451236bc2ddfe4317e6f39?narHash=sha256-1rYieMVUyZ3kK/cBIr8mOusxrOEJ1/%2B2MsOg0oJ7b3A%3D' (2025-11-15)
  → 'github:nix-community/home-manager/3670a78eee49deebe4825fc8ecc46b172d1a8391?narHash=sha256-yvdCYUL85zEDp2NzPUBmaNBXP6KnWEOhAk3j7PTfsKw%3D' (2025-11-16)
2025-11-17 15:39:31 +00:00
nixvim-ci[bot]
cc525c4333 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/1d4c88323ac36805d09657d13a5273aea1b34f0c?narHash=sha256-esRhOS0APE6k40Hs/jjReXg%2Brx%2BJ5LkWw7cuWFKlwYA%3D' (2025-11-15)
  → 'github:NixOS/nixpkgs/85a6c4a07faa12aaccd81b36ba9bfc2bec974fa1?narHash=sha256-3YJkOBrFpmcusnh7i8GXXEyh7qZG/8F5z5%2B717550Hk%3D' (2025-11-16)
2025-11-17 15:39:31 +00:00
Gaetan Lepage
59af09b181 tests/all-package-defaults: disable broken packages on darwin 2025-11-16 23:15:42 +00:00
Gaetan Lepage
b1c9ab7399 tests: disable all tests depending on swift
https://github.com/NixOS/nixpkgs/issues/461474
2025-11-16 23:15:42 +00:00
Gaetan Lepage
11ea1378dd tests/all-package-defaults: rename disabledTests to disabledPackages 2025-11-16 23:15:42 +00:00
nixvim-ci[bot]
5b09a56468 flake/dev/flake.lock: Update
Flake lock file updates:

• Updated input 'dev-nixpkgs':
    'github:NixOS/nixpkgs/91c9a64ce2a84e648d0cf9671274bb9c2fb9ba60?narHash=sha256-ITeH8GBpQTw9457ICZBddQEBjlXMmilML067q0e6vqY%3D' (2025-11-12)
  → 'github:NixOS/nixpkgs/1d4c88323ac36805d09657d13a5273aea1b34f0c?narHash=sha256-esRhOS0APE6k40Hs/jjReXg%2Brx%2BJ5LkWw7cuWFKlwYA%3D' (2025-11-15)
• Updated input 'home-manager':
    'github:nix-community/home-manager/c3bc79be5ee97455262c6c677bbf065eed07948c?narHash=sha256-oLugbe2pJv39BjWg7kAljn6vUxjVr/ArkITDX8fFd2Y%3D' (2025-11-15)
  → 'github:nix-community/home-manager/96156a9e86281c4bfc451236bc2ddfe4317e6f39?narHash=sha256-1rYieMVUyZ3kK/cBIr8mOusxrOEJ1/%2B2MsOg0oJ7b3A%3D' (2025-11-15)
2025-11-16 23:15:42 +00:00
nixvim-ci[bot]
73c8c5f9cb flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/91c9a64ce2a84e648d0cf9671274bb9c2fb9ba60?narHash=sha256-ITeH8GBpQTw9457ICZBddQEBjlXMmilML067q0e6vqY%3D' (2025-11-12)
  → 'github:NixOS/nixpkgs/1d4c88323ac36805d09657d13a5273aea1b34f0c?narHash=sha256-esRhOS0APE6k40Hs/jjReXg%2Brx%2BJ5LkWw7cuWFKlwYA%3D' (2025-11-15)
2025-11-16 23:15:42 +00:00
nixvim-ci[bot]
074c68468c flake/dev/flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/827f2a23373a774a8805f84ca5344654c31f354b?narHash=sha256-RYHN8O/Aja59XDji6WSJZPkJpYVUfpSkyH%2BPEupBJqM%3D' (2025-11-12)
  → 'github:nix-community/home-manager/c3bc79be5ee97455262c6c677bbf065eed07948c?narHash=sha256-oLugbe2pJv39BjWg7kAljn6vUxjVr/ArkITDX8fFd2Y%3D' (2025-11-15)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/5125a3cd414dc98bbe2c528227aa6b62ee61f733?narHash=sha256-/QLk1bzmbcqJt9sU43%2By/3tHtXhAy0l8Ck0MoO2%2BevQ%3D' (2025-11-08)
  → 'github:lnl7/nix-darwin/973db96394513fd90270ea5a1211a82a4a0ba47f?narHash=sha256-6p2ljK42s0S8zS0UU59EsEqupz0GVCaBYRylpUadeBM%3D' (2025-11-14)
2025-11-15 13:18:48 +00:00
Heitor Augusto
a1d3ca9732 tests/fzf-lua: add skim profile test 2025-11-14 23:18:53 +00:00
Heitor Augusto
9ade1084d5 plugins/fzf-lua: fix fzf_bin example 2025-11-14 23:18:53 +00:00
Heitor Augusto
6f549ab04f plugins/fzf-lua: optionally enable skim dependency 2025-11-14 23:18:53 +00:00
Heitor Augusto
53d47ddf74 modules/dependencies: add skim dependency 2025-11-14 23:18:53 +00:00
nixvim-ci[bot]
e8d2951a44 maintainers: update generated/all-maintainers.nix
Automated update of the master maintainers list combining:
- Nixvim specific maintainers from lib/maintainers.nix
- Nixpkgs maintainers referenced in Nixvim modules

Changes: +7 -0 lines

Generated by: flake/dev/generate-all-maintainers/generate-all-maintainers.py
2025-11-14 22:19:14 +00:00
Paul Hinze
3bef8b6784 plugins/gitportal: init 2025-11-14 22:10:52 +00:00
Paul Hinze
d5b0cacdfb maintainers: add phinze 2025-11-14 22:10:52 +00:00
saygo-png
fd66a5c5be plugins/aerial: remove most settings declarations
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-11-14 21:52:24 +00:00