1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-10 19:11:08 +01:00
nixvim/tests/test-sources
Matt Sturgeon 463fb0ad5d modules/lsp: fix mkServerOption homepage tryEval evaluation
`lib.pipe` strictly evaluates intermediate steps using `foldl'`. As a
result, piping `(opts: opts.package.default or null)` →
`(package: (tryEval package).value)` is ineffective because
`opts.package.default` is evaluated before `tryEval` can catch exceptions.

Instead, inline `opts.package.default` directly into the `tryEval`
expression, ensuring missing package errors caught correctly.

Resolves errors when building NixOS or nix-darwin docs that include
Nixvim options.

Adds a regression test.
2025-12-08 15:37:52 +00:00
..
colorschemes tests/fetch-tests: only apply required args 2025-11-24 11:09:51 +00:00
example-configurations tests/fetch-tests: only apply required args 2025-11-24 11:09:51 +00:00
modules modules/lsp: fix mkServerOption homepage tryEval evaluation 2025-12-08 15:37:52 +00:00
plugins treewide: remove with lib; 2025-12-07 22:46:34 +00:00
env.nix modules: add env option 2025-03-24 18:50:29 +01:00
examples.nix tests/fetch-tests: only apply required args 2025-11-24 11:09:51 +00:00
extended-lib.nix tests/extended-lib: omit helpers 2025-11-24 11:09:51 +00:00