1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-11 19:41:11 +01:00
nixvim/tests/test-sources/modules
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
..
performance tests/fetch-tests: only apply required args 2025-11-24 11:09:51 +00:00
autocmd.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
clipboard.nix tests/fetch-tests: only apply required args 2025-11-24 11:09:51 +00:00
commands.nix modules/commands: allow commands to be raw lua 2024-05-21 14:27:49 +02:00
dependencies.nix tests/modules/dependencies: use the remaining *Package option 2025-12-07 23:34:03 +00:00
diagnostics.nix modules/diagnostic: rename diagnostic.config -> diagnostic.settings 2025-04-30 18:31:17 +01: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 tests/fetch-tests: only apply required args 2025-11-24 11:09:51 +00:00
lsp.nix modules/lsp: fix mkServerOption homepage tryEval evaluation 2025-12-08 15:37:52 +00:00
lua-loader.nix modules/lua-loader: use new 0.11 API for enabling/disabling 2025-04-01 16:03:03 +02:00
options.nix tests: fix occurences of deprecated "options" option 2024-03-30 14:21:21 +01:00
output.nix treewide: remove internal use of helpers module arg 2025-11-19 15:22:27 +00:00
version.nix modules/version: init with nixpkgsReleaseCheck 2025-12-03 09:24:36 +00:00