Commit graph

1095 commits

Author SHA1 Message Date
Austin Horstman
c75e4ea37f plugins/lean: migrate to mkNeovimPlugin 2025-01-31 23:39:31 +00:00
Violet Wood
0e92aaf3f2 plugins/blink-cmp: support raw lua for settings.sources.providers.enabled
plugins/blink-cmp: conciseness

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

plugins/blink-cmp: add test for providers.enabled
2025-01-31 23:23:07 +00:00
Quentin Boyer
a2f01876f7 lib: Harmonize package options which may not exist in nixpkgs 2025-01-31 22:55:38 +00:00
Gaetan Lepage
e4ed227f99 plugins/gitsigns: remove deprecated option 'show_deleted'
https://github.com/lewis6991/gitsigns.nvim/pull/1174
2025-01-30 17:43:51 +01:00
Gaetan Lepage
2f5374c3dc plugins/lexima: init 2025-01-29 21:04:27 +00:00
Gaetan Lepage
12e658eca8 treewide: use mkWarnings where possible 2025-01-29 15:57:14 +01:00
Gaetan Lepage
eeafe2a715 plugins/zotcite: init 2025-01-28 23:16:30 +00:00
Gaetan Lepage
b6c0cfab81 plugins/zotcite: init 2025-01-28 18:25:28 +01:00
Johan Larsson
8b09c4a829
plugins/clangd-extensions: remove inlay_hints option
The setting has been removed upstream:
db28f29be9.
2025-01-28 08:30:54 +01:00
Austin Horstman
32aa73af47
plugins/dap-virtual-text: migrate to mkNeovimPlugin 2025-01-27 10:08:09 -06:00
Austin Horstman
9eae5db29a
plugins/dap-ui: migrate to mkNeovimPlugin 2025-01-27 10:08:09 -06:00
Austin Horstman
a70168e0fa
plugins/dap-python: migrate to mkNeovimPlugin 2025-01-27 10:08:09 -06:00
Austin Horstman
6ff7127291
plugins/dap-go: migrate to mkNeovimPlugin 2025-01-27 10:08:09 -06:00
Matt Sturgeon
d7df583211
docs: eval modules without access to pkgs
Replace the `package-options` test with a stricter implementation.

When evaluating modules for use in the docs, provide them with a stubbed
`pkgs` instance that throws an error whenever a package is evaluated.

This ensures we don't accidentally use any packages in defaults or
examples.
2025-01-25 19:16:09 +00:00
Johan Larsson
16f92ff8a6 plugins/gx: init
Strip `lib` from `lib.types.`

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Fix settingsExample expression

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

Use '-version of options for better examples

Fix indentation in example lua code

Remove trailing space

Replace use of literalLua with strings

Revert to use literalLua

Use lib.mkDefault

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2025-01-24 13:51:02 +00:00
Austin Horstman
c7a600c3f3
plugins/git-worktree: migrate to mkNeovimPlugin 2025-01-23 23:29:42 -06:00
Gaetan Lepage
e22bb46c88 plugins/quicker: init 2025-01-23 16:18:51 +01:00
Gaetan Lepage
5bd71b2474 Revert "[TO-REVERT] tests: disable failing-tests"
This reverts commit 3c463c8e7fd6813c600ebf50cafe8e3abb7ecb7c.
2025-01-22 18:13:44 +01:00
Gaetan Lepage
31b0e36087 [TO-REVERT] tests: disable failing-tests
https://github.com/NixOS/nixpkgs/pull/375585
2025-01-22 17:04:20 +00:00
Gaetan Lepage
8926001426 tests/lsp-servers: disable bitbake_language_server (build failure) 2025-01-22 17:04:20 +00:00
Matt Sturgeon
53bfadc2c2
lib/modules: work-around a submodule type-merging issue
Includes a regression test.

Revert "lib/modules: remove explicit `specialArgs.lib`"

This reverts commit b5efe91c52.
2025-01-21 12:10:29 +00:00
Matt Sturgeon
77c78bd04e
tests/platforms: move out of flake wrappers module
These should be set up in a dedicated test file, owned by
`tests/default.nix`.

Also refactored to use `callTest`.
2025-01-21 10:52:56 +00:00
Matt Sturgeon
00586f8f1b
modules/output: move symlinkJoin to build.package 2025-01-20 14:49:59 +00:00
Gaetan Lepage
a7e516b322 lib/utils: add mkAssertions 2025-01-20 14:17:26 +01:00
Gaetan Lepage
02e16b2a76 lib/utils: add mkWarnings 2025-01-20 12:25:33 +00:00
Gaetan Lepage
ab693bb1cd plugins/vim-suda: add back the smart_edit option 2025-01-19 15:19:43 +01:00
Matt Sturgeon
fecc892145
flake: remove pkgsUnfree arg 2025-01-19 12:55:15 +00:00
Gaetan Lepage
cbf960e565 plugins/flutter-tools: update options 2025-01-18 11:49:38 +00:00
Gaetan Lepage
4f2d78fcaf plugins/flutter-tools: update settingsExample 2025-01-18 11:49:38 +00:00
Matt Sturgeon
3172e48dbb
lib/tests: simplify access to default system 2025-01-17 10:16:10 +00:00
Matt Sturgeon
7790746d38
modules/nixpkgs: add useGlobalPackages option 2025-01-17 10:16:09 +00:00
Matt Sturgeon
912841c1a7
modules/nixpkgs: construct an instance of nixpkgs.source 2025-01-17 09:37:03 +00:00
Matt Sturgeon
ff29c97723
modules/test: provide access to expect function
Allow `test.warnings` and `test.assertions` to be defined as either a
list, or a function coerced to a list.

When defined as a function, it is supplied an `expect` function which
provides some syntactic-sugar for defining simple expectations.

This is an alternative to the current approach of defining that `expect`
function on an ad-hoc basis.

I prefer this to adding `expect` to nixvim's lib because:
1. That would require having access to `lib`
2. IDK where in `lib` such a specialized function should live
2025-01-17 02:17:34 +00:00
Matt Sturgeon
d4c67764a7
tests/nixpkgs-module: only import the minimal modules for test
Instead of importing the full set of top-level nixvim modules, only
import the nixpkgs-module and its direct dependencies.
2025-01-16 02:55:01 +00:00
Matt Sturgeon
e13b2a5129
tests/nixpkgs-module: split up helper fn 2025-01-16 02:55:01 +00:00
Matt Sturgeon
5192a85f32
test/nixpkgs-module: use a fixed runCommand function
Rather than getting `runCommand` from the pkgs instance under test, get
the function from a fixed/consistent pkgs instance.
2025-01-16 02:55:01 +00:00
Matt Sturgeon
5b068e7f8f
tests/nixpkgs: move nixpkgs module test to dedicated drv
This should be separate from `test-sources` because we want to re-use a
common instance of nixpkgs throughout those tests.

Also, moved the existing nixpkgs module test from `test-sources`.

This partially reverts commit c4ad4d0b2e.
2025-01-15 18:04:06 +00:00
Gaetan Lepage
a54b752259 plugins/femaco: init 2025-01-13 16:02:52 +00:00
Gaetan Lepage
b3d857573b plugins/papis: init 2025-01-13 15:57:18 +00:00
Gaetan Lepage
b7f783a8dc plugins/tailwind-tools: init 2025-01-13 15:52:01 +00:00
Gaetan Lepage
67bbdf9318 plugins/cornelis: init 2025-01-13 15:47:09 +00:00
Heitor Augusto
8f7600aca0 plugins/lazydev: init 2025-01-13 15:34:09 +00:00
Johan Larsson
35d6c12626 plugins/clangd-extensions: convert to mkNeovimPlugin
Wrap code in backticks

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Surround right_aling with backticks

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Set default of `inline` to true since we are on nvim >= 0.10

Document `highlights`

Use `mkUnsignedInt`

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Improve warning

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Readd deprecated options

Document icons

Rename removed-options.nix to deprecations.nix

Reformat raw string

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Don't specify rawLua

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Use mkDefault and make utf-16 workaround leaner

Don't wrap warning

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

Change by -> after

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

Document border options
2025-01-12 20:58:31 +00:00
Gaetan Lepage
56877b8f76 plugins/llm: init 2025-01-12 20:16:00 +00:00
Gaetan Lepage
8f4bf6d300 plugins/sg: init 2025-01-12 20:07:39 +00:00
Gaetan Lepage
5f3785feb8 plugins/projections: init 2025-01-12 20:00:49 +00:00
Gaetan Lepage
4527abba58 plugins/visual-multi: init 2025-01-12 18:38:35 +00:00
Gaetan Lepage
8db6c51762 plugins/lir: init 2025-01-12 18:33:25 +00:00
Gaetan Lepage
67de84848e tests/lean: disable lean tests on x86_64-darwin
https://github.com/NixOS/nixpkgs/pull/371275
2025-01-09 14:51:01 +01:00
Gaetan Lepage
bca43a2a8e tests/lsp/all-servers: disable autotools_ls on aarch64-linux
https://github.com/NixOS/nixpkgs/issues/372375
2025-01-09 14:43:27 +01:00