Commit graph

1282 commits

Author SHA1 Message Date
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
Austin Horstman
2f9b103d2e
plugins/blink-cmp: update completion.list.selection type
Changed in latest release. Making type backwards compatible with
previous release.
2025-01-08 16:13:53 -06:00
Gaetan Lepage
2054094544 plugins/dropbar: init 2025-01-08 22:05:34 +00:00
Johan Larsson
592e9eaff0 plugins/inc-rename: convert to mkNeovimPlugin and add option
Add example

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

Add example to test as well
2025-01-08 21:58:30 +00:00
Johan Larsson
8899663b59
plugins/persistence: convert to mkNeovimPlugin and fix settings
Restrict no nonnegative numbers

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

chore: include optionsRenamedToSettings in TODO

Merge imports

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2025-01-08 15:56:07 +01:00
Heitor Augusto
73303938ee
plugins/copilot-lua: migrate to mkNeovimPlugin 2025-01-07 16:11:38 -03:00
Heitor Augusto
81c1ef2090 tests/fidget: update to new format 2025-01-06 23:45:55 +00:00
Gaetan Lepage
1e564fae7d colorschemes/monokai-pro: init 2025-01-06 23:07:53 +00:00
Gaetan Lepage
8968da1617 plugins/smear-cursor: init 2025-01-06 22:58:59 +00:00
Gaetan Lepage
31139e0605 plugins/vimux: init 2025-01-06 10:00:55 +00:00
Gaetan Lepage
2d18a77432 Revert "tests/lsp-servers: disable ruby_lsp (broken package)"
This reverts commit 7347e4508e.
2025-01-06 08:02:31 +01:00
Johan Larsson
7896856db1 plugins/treesj: init
Add support for treesj, a plugin that splits and joins blocks of code,
such as arrays and argument lists.

Remove package field

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

Finish sentence with full stop

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

Add a blank line between options

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

Rename `opts` to `langs`

Shorten example settings

Add blanklines between option declarations

Add blank line between enable and settings

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

Add blank line between enable and settings

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

Use mkEnumFirstDefault instead of mkStr

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

Use mkRaw instead of mkLuaFn

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

Simplify langs option
2025-01-05 21:24:23 +00:00
Austin Horstman
974b1d2ce5
plugins/telescope: add project extension 2025-01-05 12:37:22 -06:00
Gaetan Lepage
4f4917be69 plugins/csvview: init 2025-01-03 21:59:33 +01:00