Commit graph

1265 commits

Author SHA1 Message Date
Gaetan Lepage
4dc8d1e918 plugins/vim-test: init 2025-05-24 06:26:17 +10:00
Gaetan Lepage
c457fe9424 plugins/dbee: init 2025-05-24 06:14:14 +10:00
Gaetan Lepage
563fdaeef9 tests: disable papis test on darwin
https://github.com/NixOS/nixpkgs/issues/408528
2025-05-19 00:26:01 +02:00
FKouhai
1c53ad9b2f
plugins/timerly: init 2025-05-13 23:50:02 +02:00
Gaetan Lepage
d385972711 Revert "tests/lsp: disable ols test because odin is broken"
This reverts commit 6597afe209.
2025-05-13 21:30:47 +00:00
Stanislav Asunkin
4c23fb2738 tests/modules/performance/combine-plugins: use shared stub plugins
This commit replaces stub plugins with the shared ones from utils
module.
This also removes separate tests for checking python and lua
dependencies. This is now tested in the 'default' test thanks to
`pluginChecks` code.
2025-05-12 17:39:01 +03:00
Stanislav Asunkin
a49b270861 tests/modules/performance/byte-compile-lua: use shared stub plugins
This commit finalizes using shared utils stub plugins for
performance.byteCompileLua tests.
To re-use more code from utils module, 'pluginChecksFor', 'libChecksFor'
and 'pythonChecksFor' functions were introduced. These functions
generate a check code for the given plugins/libs names.
2025-05-12 17:39:01 +03:00
Stanislav Asunkin
75f2c1b1f1 modules/performance: ensure dependencies of lua packages also compiled
Previously only extraLuaPackages themselves were byte-compiled, not
theirs dependencies. This commit fixes that by compiling lua packages
recursively. It uses byte-compile-lua-lib.nix shared file.
Also this commit uses the shared stub lua libraries for extraLuaPackages
byte-compiling test.
2025-05-12 17:39:01 +03:00
Stanislav Asunkin
9474ce916a modules/performance: ensure all lua dependencies are byte-compiled
This commit replaces custom lua plugins in tests with shared stub
plugins from utils module.
After this change the test has started to fail. Debugging this issue
I found out that dependencies of plugins weren't processed.
This commit improves the test assertion to detect duplicated
dependencies in this case and fixes the underlying issue by also
processing dependencies.
2025-05-12 17:39:01 +03:00
Stanislav Asunkin
2210d7bb10 tests/utils/plugin-stubs: add shared plugin stubs for use in tests
This commit introduces a shared utils module for future use in
performance tests. It includes lua libraries and plugins of various
types and dependencies. Additionally, it provides lua code snippets to
verify that all features supplied by the plugins are functioning
correctly.
2025-05-12 17:39:01 +03:00
Stanislav Asunkin
2c6182351f modules/performance: add ability to byte-compile plugin lua dependencies
This commit adds byte compiling of plugin lua dependencies
(specifically propagatedBuildInputs). It's enabled by
`performance.byteCompileLua.luaLib` option.
2025-05-12 17:39:01 +03:00
Stanislav Asunkin
404e56066f modules/performance: add ability to byte compile extraLuaPackages
This commit adds `performance.byteCompileLua.luaLib` options. When
enabled it byte-compiles lua packages from extraLuaPackages option.
2025-05-12 17:39:01 +03:00
Stanislav Asunkin
fac192c022 tests/modules/performance/byte-compile-lua: improve tests
* improve assert messages
* validate both byte-compiled and non-byte-compiled files are working
2025-05-12 17:39:01 +03:00
Stanislav Asunkin
d7475dd0fa tests/modules/performance/byte-compile-lua: test with stub plugins
To reduce unexpected breakages due to changes in nixpkgs, replace the
tested plugins with specially crafted stub plugins.
2025-05-12 17:39:01 +03:00
Stanislav Asunkin
5b47c65705 tests/modules/performance/byte-compile-lua: improve bytecode detection
Previously, to determine if a file is byte-compiled, a simple binary
file detection was used, specifically checking if it contained any null
bytes. This commit updates the check to read the file header and compare
it with a known LuaJIT header.
2025-05-12 17:39:01 +03:00
Stanislav Asunkin
ddddd780e0
tests/fetch-tests: avoid unnecessary copy-to-store
Previously path was concatenated using string interpolation. This commit
switches from string interpolation to path interpolation.

The problem is nix will copy the "${directory}" to a new store
object, meaning anything outside its root won't be available.

From the nix manual:

> A path in an interpolated expression is first copied into the Nix
> store, and the resulting string is the store path of the newly created
> store object.

https://nix.dev/manual/nix/2.28/language/string-interpolation#interpolated-expression
2025-05-12 15:24:52 +01:00
Jalil David Salamé Messina
69266437be
plugins/hunk: init
Add support for [hunk.nvim][1], a plugin for splitting diffs.

Also add myself as a maintainer for it.

[1]: https://github.com/julienvincent/hunk.nvim
2025-05-12 08:42:08 +02:00
Matt Sturgeon
17e13d478d
plugins/oil-git-status: improve signcolumn warning
The warning should trigger when a valid value is configured that
restricts the sign column to less than 2 columns.
2025-05-09 21:23:06 +01:00
Matt Sturgeon
2797fd8b64
plugins/oil-git-status: update signcolumn instructions
See:

- https://github.com/refractalize/oil-git-status.nvim#configuration
- https://neovim.io/doc/user/options.html#'signcolumn'
2025-05-09 19:26:36 +01:00
Alison Jenkins
2d485ca1a2
colorschemes/bamboo: init 2025-05-09 08:20:57 +01:00
Heitor Augusto
4bd021d25f plugins/lz-n: add tests for keymap(<plugin>).set API 2025-05-09 01:14:36 +01:00
FKouhai
aa1ae69b57
plugins/oil-git-status: init 2025-05-09 00:19:09 +02:00
Austin Horstman
c1fa5ee942 plugins/dap-view: disable controls test
Needs upstreamed plugin update for us to test it.
2025-05-08 13:35:47 -05:00
Austin Horstman
cca235aacf plugins/dap-view: init module 2025-05-08 13:35:47 -05:00
Austin Horstman
324801b226 plugins/whitespace: init module 2025-05-08 13:33:11 -05:00
Austin Horstman
1158bb13f2 plugins/visual-whitespace: init module 2025-05-08 13:32:52 -05:00
Austin Horstman
5fed6b9363 plugins/claude-code: don't test on darwin
Currently failing on our CI, for some reason.
2025-05-08 10:51:26 +02:00
Austin Horstman
b17c801f2e plugins/claude-code: init module 2025-05-08 10:35:31 +02:00
Gaetan Lepage
6597afe209 tests/lsp: disable ols test because odin is broken
https://github.com/NixOS/nixpkgs/pull/404919
2025-05-07 22:43:05 +02:00
Matt Sturgeon
c26f5c2e31 plugins/lsp-format: use lsp.onAttach instead of an autoCmd 2025-05-06 14:08:03 +01:00
Jeremy Fleischman
64cd675ece
Port lsp-format to use non-deprecated setup instructions
Upstream still documents the now-deprecated
`require("lspconfig").<name>.setup` mechanism. I believe the modern
alternative is to register a `LspAttach` autocmd. For more context, see:

- https://github.com/lukas-reineke/lsp-format.nvim/issues/98
- https://github.com/lukas-reineke/lsp-format.nvim/pull/99
2025-05-05 14:13:25 -07:00
FKouhai
7d18194a22 colorschemes/kanagawa-paper: init 2025-05-04 20:42:00 +01:00
Benedikt Peetz
8fcd7f1a92 plugins/lf: init 2025-05-03 22:58:16 +01:00
Johan Larsson
8b3107ad6f plugins/clangd-extensions: adapt to new lsp module
Adapt warnings, default settings, and tests to the new lsp module. Also
change the previous warning, which I think should target the clangd
server directly, and just not `plugins.lsp`, since the clangd server is
necessary for clangd-extensions to function.
2025-05-03 17:21:30 +01:00
Johan Larsson
8523385bd8
plugins/schemastore: adapt to new lsp module
Modify warnings, tests, and default settings to work with the new lsp
module.

Update plugins/by-name/schemastore/default.nix

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>

Update plugins/by-name/schemastore/default.nix

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-05-03 09:43:04 +02:00
Johan Larsson
4b27678512 plugins/iron: init
Update plugins/by-name/iron/default.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2025-05-02 23:25:40 +02:00
Gaetan Lepage
98644a34ab plugins/origami: init 2025-05-02 13:52:22 +02:00
Gaetan Lepage
cd30817b21 plugins/tiny-inline-diagnostic: init 2025-05-02 01:48:26 +02:00
Matt Sturgeon
a072e3c3a7
modules/lsp: enable servers."*" by default 2025-05-01 00:36:41 +01:00
Gaetan Lepage
6297f4c01a plugins/vimade: init 2025-05-01 00:40:14 +02:00
Gaetan Lepage
913a3521ab plugins/ident-tools: init 2025-04-30 22:49:38 +02:00
Johan Larsson
eeae362038
modules/lsp: add enable = true to wildcard config section 2025-04-30 20:55:26 +01:00
Matt Sturgeon
1df98b6636
modules/diagnostic: rename diagnostic.config -> diagnostic.settings
Follow up to #3226, in line with the decisions made in #3254.
2025-04-30 18:31:17 +01:00
Gaetan Lepage
405a564f3d plugins/actions-preview: init 2025-04-30 19:14:35 +02:00
Matt Sturgeon
21688b1d2a
modules/lsp/server: rename config -> settings
`config` is a loaded term within modules and options.

`settings` is the name usually used for freeform config in nixvim and
most other module configurations.
2025-04-30 17:35:46 +01:00
Gaetan Lepage
276abde288 plugins/peek: init 2025-04-30 16:27:29 +02:00
Gaetan Lepage
76a319c5ab Revert "tests/lsp-servers: disable bitbake_language_server (build failure)"
This reverts commit cd3cbb1e26.
2025-04-30 08:31:32 +02:00
Gaetan Lepage
cd3cbb1e26 tests/lsp-servers: disable bitbake_language_server (build failure) 2025-04-29 15:37:54 +02:00
Gaetan Lepage
944a316881 plugins/goto-preview: init 2025-04-29 13:52:09 +02:00
Gaetan Lepage
19528509e5 plugins/dial: init 2025-04-29 00:48:55 +02:00