Austin Horstman
1854d591cb
tests/plugins/lsp: re-enable tests
2024-08-22 10:26:05 -05:00
Matt Sturgeon
fe12a092f6
tests: general cleanup
...
- Refactor much of `tests/fetch-tests.nix`
- Move `mkTest` up to let-block in `tests/default.nix`
2024-08-22 15:27:56 +01:00
Matt Sturgeon
087f70cb0a
tests: remove special case for efmls-configs
2024-08-22 15:27:56 +01:00
Matt Sturgeon
06419627e2
tests/plugins/nvim-osc52: use new test.checkWarnings
option
2024-08-22 14:46:55 +01:00
Matt Sturgeon
004181813f
tests/plugins/schemastore: don't check warnings
...
Follow up to a1a3488779
Uses new `test.checkWarnings` option.
2024-08-22 14:46:55 +01:00
Matt Sturgeon
19d5f4b134
lib/test: move from tests/test-derivation
2024-08-21 02:48:06 +01:00
Matt Sturgeon
cbd1003d9d
modules/test: move test derivation to an option
...
Introduced the `test.derivation` read-only option.
2024-08-21 02:48:00 +01:00
Austin Horstman
39081a4106
tests/plugins/lsp: re-enable vala-ls on linux
2024-08-19 20:52:10 -05:00
Austin Horstman
9a218fed31
tests/plugins/none-ls: re-enable d2_fmt and yamlfix
2024-08-19 20:52:10 -05:00
Austin Horstman
366f25598a
tests/plugins/lsp: re-enable omnisharp on darwin
2024-08-19 20:52:09 -05:00
Austin Horstman
ec9d299183
tests/plugins/openscad: re-enable on darwin
...
Builds for me locally.
2024-08-19 20:52:09 -05:00
Austin Horstman
a1a3488779
tests/plugins/lsp: disable vscode-langservers-extracted tests (broken package)
...
Re-enable after https://github.com/NixOS/nixpkgs/pull/335559 is
available in nixos-unstable.
2024-08-19 20:52:09 -05:00
Austin Horstman
f7cdecbad8
tests/plugins/none-ls: disable prisma_format test (broken package)
2024-08-19 20:52:09 -05:00
Austin Horstman
a9ffb6c958
tests/plugins/lsp: disable prismals test (broken package)
2024-08-19 20:52:09 -05:00
Austin Horstman
ec9e5c071a
plugins/markview: remove unnecessary extraPlugin
2024-08-19 20:52:09 -05:00
Gaetan Lepage
460b47997f
tests/plugins/lsp: disable typst-lsp test (broken package)
2024-08-19 20:42:00 -05:00
Gaetan Lepage
fc6d40d798
tests/plugins/lsp: typst-lsp -> tinymist
2024-08-19 20:42:00 -05:00
Matt Sturgeon
123a55ed6f
tests: remove special treatment of module
...
Since we no longer need to extract `tests.dontRun` from an attrset, we
no longer need the "special" `module` attr.
2024-08-20 01:07:21 +01:00
Matt Sturgeon
7b2a6cd9e6
tests: tests.dontRun
-> test.runNvim
...
Convert all test-cases to use the new `test.runNvim` module option.
2024-08-20 00:46:30 +01:00
Matt Sturgeon
f47374fd26
modules/test: init, replacing dontRun
arg
...
Introduces the `test.runNvim` module option.
Deprecates the historic `dontRun` argument passed to the test-derivation
helpers.
Soft-deprecates the `tests.dontRun` attr used in tests currently.
2024-08-20 00:34:12 +01:00
Matt Sturgeon
69c2fa866e
tests: group tests by 10
...
Attempt to find a middle ground between having a single link-farm and
one test per file.
This groups up to ten tests per (roughly) 28 link-farms.
2024-08-19 01:11:10 +01:00
Matt Sturgeon
8f99c3953c
lib/util: add groupListBySize
...
Splits up a list into many sub-lists based on the given max-size.
e.g.
```nix
groupListBySize 2 [ 1 2 3 4 5 ]
=> [ [ 1 2 ] [ 3 4 ] [ 5 ] ]
```
2024-08-19 00:50:57 +01:00
Matt Sturgeon
693e749edb
tests/lib-test: correctly print expected/result
...
In some edge cases, expected and result can't be directly used in string
interpolation, so pass them through `lib.generators.toPretty` to be safe.
2024-08-19 00:38:22 +01:00
Matt Sturgeon
c52ba67856
Revert "tests: Allow to test multiple derivations in a single test derivation"
...
This reverts commit 71126bfebe
.
2024-08-18 20:42:56 +01:00
Matt Sturgeon
9688ef723f
tests: use a link-farm again, but only per-file
2024-08-18 20:42:55 +01:00
Austin Horstman
379ae77a76
plugins/todo-comments: migrate to mkNeovimPlugin
2024-08-18 14:25:00 -05:00
Austin Horstman
00f32f0430
tests/lua-loader: builtins.match -> lib.hasInfix
...
Getting invalid regex expression on darwin.
2024-08-16 08:55:38 -05:00
Austin Horstman
ebd2182b44
plugins/which-key: updated spec examples and tests
...
Improve documentation for supported configurations
2024-08-15 15:47:25 -05:00
Enno Richter
a96aa9730a
tests/plugins/utils/spectre: enable tests on Darwin
2024-08-14 23:18:51 +02:00
Austin Horstman
cb398ce4ba
plugins/bufferline: migrate to mkNeovimPlugin
...
Also resolves https://github.com/nix-community/nixvim/issues/1890 by
automatically setting up `diagnostics.update_in_insert` for the user.
2024-08-14 11:20:17 +00:00
Matt Sturgeon
4eb2ad7db7
lib/lua: support nixpkg's "lua-inline" type
...
See #1935
2024-08-14 00:25:59 +01:00
Austin Horstman
d9055abe20
plugins/markview: init
2024-08-12 01:06:53 -05:00
Austin Horstman
4852f94f8c
plugins/yazi: init
2024-08-09 14:02:25 -05:00
Matt Sturgeon
c46bd820ad
plugins/firenvim: fix aliasing settings
into globals
...
Needed to use `options.*.settings` instead of `config.*.settings`.
I was concerned that the test-case didn't pick up on this, so I added an
new test case with some basic assertions.
2024-08-09 09:28:38 +01:00
alxdb
fab51138b7
plugins/lsp/bufls: init
2024-08-08 23:29:39 +01:00
Austin Horstman
1adbf11900
plugins/which-key: migrate to mkNeovimPlugin
2024-08-08 16:17:09 -05:00
Haseeb Majid
1b135dedc4
plugins/neotest: add neotest-golang
2024-08-08 14:20:15 +01:00
psfloyd
78abafe280
plugins/lz-n: init
2024-08-08 06:18:43 +00:00
Gaetan Lepage
593f5215cb
plugins/firenvim: init
2024-08-07 23:04:09 +02:00
psfloyd
c9a855fe68
plugins/nvim-snippets: init
2024-08-06 23:04:57 -03:00
Gaetan Lepage
0f7817876a
plugins/luasnip: add tests
2024-08-05 05:49:37 +00:00
Matt Sturgeon
3d1224a039
tests/modules/output: remove IFD
2024-08-04 00:13:12 +01:00
Gaetan Lepage
96d0a2e390
plugins/gitblame: switch to mkNeovimPlugin
2024-08-03 16:21:55 +02:00
Matt Sturgeon
491ca5cf51
lib: provide an "extended lib" to our modules
...
lib/extend-lib.nix returns a nixpkg's lib extended with our own
helpers.
This is exposed as `helpers.extendedLib`, but when evaluating our
modules it should be assigned to `specialArgs.lib`.
Outside of our modules you must still access our helpers via
`config.lib.nixvim` or `config.lib.nixvim.extendedLib`.
Within helpers' sub-sections, `lib` is the extended lib.
2024-08-02 14:33:59 +01:00
Gaetan Lepage
820f8d58ea
tests/otter: add treesitter to avoid warning
2024-08-01 08:13:36 +02:00
Gaetan Lepage
bae46eafd1
tests/cmp-all-sources: disable the otter source as it triggers a warning when treesitter is missing
2024-08-01 08:12:48 +02:00
Gaetan Lepage
8024b044d6
tests/plugins/efmls: disable dmd test on x86_64-darwin
...
https://github.com/NixOS/nixpkgs/pull/331373
2024-07-31 22:36:07 +02:00
Gaetan Lepage
5c149963c0
tests/colorschemes/cyberdream: remove invalid attribute 'style'
2024-07-31 17:05:50 +02:00
Stanislav Asunkin
9314cd46f0
modules/performance: add ability to byte compile nvim runtime directory
...
This commit adds `performance.byteCompileLua.nvimRuntime` toggle that,
if enabled, byte compiles all lua files in Nvim runtime directory.
2024-07-31 11:31:40 +00:00
Stanislav Asunkin
55ca9d235b
modules/performance: add ability to byte compile lua plugins
...
This commit adds `performance.byteCompileLua.plugins` toggle that, if
enabled, byte compiles all lua files in plugins
2024-07-31 11:31:40 +00:00