Matt Sturgeon
4e5bd1d79b
lib: segregate and deprecate functions that need pkgs
...
Splits everything that depends on a `pkgs` instance into an optional
attrs, allowing `helpers.nix` to be bootstrapped without `pkgs`.
This required some refactoring:
- `modules.specialArgs` is only available when `pkgs` is used
- `modules.specialArgsWith` now requires `defaultPkgs` be provided
- `builders.*` now have `*With` variants that take `pkgs` as an argument
and a `withPkgs` function that returns the old interface
- Had to define the fixed part of `builders` outside the attrs for now,
to avoid infinite recursion.
- The old `builders` are now deprecated, and print a warning when
evaluated
- `withOptoinalFns` was introduced to merge the optional attrs into the
final lib.
2024-09-13 19:05:26 +01:00
Matt Sturgeon
f47e8f8f79
lib: use lib.fix
and self
internally
2024-09-13 17:25:17 +01:00
Matt Sturgeon
7a147234f8
lib: rename helpers.nix
-> default.nix
...
The old `default.nix` is inlined into the "lib" flake-module, which is
the only place it was used.
This allows "helpers" to take its rightful place at the root of `./lib` 👑
2024-09-13 17:25:17 +01:00
Sefa Eyeoglu
0b665b200b
plugins/lsp/harper-ls: init
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-09-13 18:16:20 +02:00
Austin Horstman
aa15c24437
tests/lsp: disable swift
2024-09-13 10:08:08 -05:00
Austin Horstman
5143afeebc
tests/efmls: disable swift
2024-09-13 10:08:08 -05:00
Austin Horstman
6e22c9e8db
tests/none-ls: disable swift
2024-09-13 10:08:08 -05:00
Austin Horstman
890cc1438e
tests/neoclip: disable sqlite test
2024-09-13 10:08:08 -05:00
Austin Horstman
1107a52878
tests/yanky: disable sqlite test
2024-09-13 10:08:08 -05:00
Austin Horstman
3d3bf1e4b3
tests/lsp: disable taplo
2024-09-13 10:08:08 -05:00
Matt Sturgeon
1310eaf606
flake/treefmt: disable taplo for now
...
It is currently broken, with the error:
taplo with options '[format]' failed to apply: exit status 101
2024-09-13 10:08:08 -05:00
Matt Sturgeon
3c9af6191e
plugins/efmls: move eslint
pkg ref to top-level
...
Fixes #2168
2024-09-13 10:08:08 -05:00
github-actions[bot]
46c3048a61
generated: Updated rust-analyzer.nix
2024-09-13 10:08:08 -05:00
github-actions[bot]
6e5d4bf44c
flake.lock: Update
...
Flake lock file updates:
• Updated input 'flake-parts':
'github:hercules-ci/flake-parts/8471fe90ad337a8074e957b69ca4d0089218391d' (2024-08-01)
→ 'github:hercules-ci/flake-parts/567b938d64d4b4112ee253b9274472dc3a346eb6' (2024-09-01)
• Updated input 'git-hooks':
'github:cachix/git-hooks.nix/4509ca64f1084e73bc7a721b20c669a8d4c5ebe6' (2024-08-28)
→ 'github:cachix/git-hooks.nix/7570de7b9b504cfe92025dd1be797bf546f66528' (2024-09-05)
• Updated input 'home-manager':
'github:nix-community/home-manager/c2cd2a52e02f1dfa1c88f95abeb89298d46023be' (2024-08-23)
→ 'github:nix-community/home-manager/aaebdea769a5c10f1c6e50ebdf5924c1a13f0cda' (2024-09-07)
• Updated input 'nix-darwin':
'github:lnl7/nix-darwin/ac5694a0b855a981e81b4d9f14052e3ff46ca39e' (2024-08-25)
→ 'github:lnl7/nix-darwin/76559183801030451e200c90a1627c1d82bb4910' (2024-09-06)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/71e91c409d1e654808b2621f28a327acfdad8dc2' (2024-08-28)
→ 'github:NixOS/nixpkgs/574d1eac1c200690e27b8eb4e24887f8df7ac27c' (2024-09-06)
• Updated input 'nuschtosSearch':
'github:NuschtOS/search/5a08d691de30b6fc28d58ce71a5e420f2694e087' (2024-08-25)
→ 'github:NuschtOS/search/9ca36bf5d8de1e51454a255208e6f6bffac24f42' (2024-09-03)
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/3ffd842a5f50f435d3e603312eefa4790db46af5' (2024-08-28)
→ 'github:numtide/treefmt-nix/9fb342d14b69aefdf46187f6bb80a4a0d97007cd' (2024-09-02)
2024-09-13 10:08:08 -05:00
Quentin Boyer
8eab77b51b
docs: Support GFM style admonitions in option descriptions
2024-09-13 13:03:23 +01:00
Quentin Boyer
cab2a30ae1
docs: Create a markdown-it plugin
2024-09-13 12:59:27 +01:00
Matt Sturgeon
6665521525
docs: move pkgs overlays to their own file
2024-09-13 12:26:48 +01:00
Matt Sturgeon
27a0dd435d
lib/types: simplify eitherRecursive
by defining it only once
2024-09-12 14:44:54 +01:00
Matt Sturgeon
a5152c2f8e
docs: remove unused oneOfRecursive
2024-09-12 13:00:03 +01:00
Matt Sturgeon
4697b96a01
mergify: fix "update PR" logic
...
We can no longer simply check the files list matches `[ flake.lock ]`,
since we now also touch `generated/` files.
Mergify conditions cannot be checked against "all" list items; checks
are always applied against "any" item. Therefore we need some
double-negatives to check that "any item does not match a regex that
does not match (flake.lock|generated/.*)".
Yes, this is horrible.
2024-09-12 10:31:45 +01:00
Matt Sturgeon
6cbcac1d43
mergify: use @nix-infra-bot to update queued PRs
2024-09-12 10:31:45 +01:00
Austin Horstman
11c133e89e
plugins/rest-nvim: add telescope integration
2024-09-10 23:00:57 -05:00
Austin Horstman
7484be88c7
plugins/rest-nvim: revert by-name migration
...
Not sure yet why, but this plugin being here breaks treesitter and
neotest.
2024-09-10 22:52:04 -05:00
Nate Smith
fc7e9b2927
colorschemes/modus: add new configuration option
...
The `hide_inactive_statusline` option is available in newer versions of
the theme.
2024-09-10 20:35:37 +00:00
Matt Sturgeon
d0c0821245
docs: patch nixos-render-docs to output GFM alerts
...
This does not add support for _using_ GFM syntax alerts, the nixpkgs
syntax must still be used in option descriptions for now.
2024-09-10 17:46:44 +01:00
Matt Sturgeon
79010edc14
docs/user-guide: update "not found in pkgs" FAQ
...
Since starting to use `lib.mkPackageOption` throughout nixvim, users
will see a slightly different error message when encountering mismatched
nixpkgs channel errors.
Also fleshed out some recommendations.
2024-09-10 13:46:24 +01:00
traxys
faa2e6306c
docs: Render alerts using mdbook-alerts
...
Closes #1791
2024-09-10 08:17:21 +00:00
Austin Horstman
facf6b2d0c
plugins/rest: remove with lib
2024-09-09 17:36:29 -05:00
Austin Horstman
b7dea12375
plugins/rest: add dependencies
...
https://github.com/rest-nvim/rest.nvim?tab=readme-ov-file#dependencies
2024-09-09 17:36:29 -05:00
Austin Horstman
6c9d178ecc
plugins/rest: add filetype association option
...
This gives users a quick way to setup the filetype association that is
expected to be configured for proper usage of the plugin.
2024-09-09 17:36:23 -05:00
Austin Horstman
9265d1ab08
tests/rust-tools: add rust-analyzer-options test
...
Make sure the import is working properly
2024-09-09 14:34:18 -05:00
Austin Horstman
b1d0959bc9
plugins/languages: move to by-name
2024-09-09 14:34:18 -05:00
Austin Horstman
9d323f3ec7
plugins/neotest: move to by-name
2024-09-09 13:00:29 -05:00
Matt Sturgeon
0f83298f2c
tests/generated: use runCommandNoCCLocal
and structuedAttrs
...
The former makes the test derivation _slightly_ smaller, the latter
makes the `$errors` stdenv variable slightly more robust.
2024-09-09 16:14:14 +01:00
Matt Sturgeon
9f4c9ea7e4
tests/generated: check packages are found in pkgs
...
Fixes #2197
2024-09-09 16:14:14 +01:00
Matt Sturgeon
49c0853ba5
plugins/hardtime: add missing rename for settings.enabled
...
Was omitted from #2193 due to confusion with our `enable` option.
Fixes #2203
2024-09-09 14:44:12 +01:00
Gaetan Lepage
ffa9b8f7a0
plugins/hex: init
2024-09-09 13:35:18 +00:00
Austin Horstman
1d6afdbce0
plugins/treesitter: clarify nixGrammars and ensure_installed
2024-09-09 08:30:45 -05:00
Matt Sturgeon
54599ad555
tests/plugins-by-name: test that required files exist
2024-09-09 11:50:42 +01:00
Matt Sturgeon
34b61f9b5b
plugins/by-name: add missing test files
...
- Added "empty" test for:
- autoclose
- commentary
- easyescape
- floaterm
- fugitive
- gitmessenger
- intellitab
- nvim-bqf
- nvim-colorizer
- surround
- treesitter-refactor
- vim-matchup
2024-09-09 11:50:42 +01:00
Matt Sturgeon
48e9af500c
plugins/by-name: remove pathExists
check
2024-09-09 11:50:41 +01:00
Matt Sturgeon
6debe9333f
plugins/telescope: move to by-name
2024-09-09 11:50:41 +01:00
Matt Sturgeon
d07a9c78cc
plugins/statuslines: move to by-name
2024-09-09 11:50:41 +01:00
Matt Sturgeon
82e7d153e4
plugins/snippets: move to by-name
2024-09-09 11:50:41 +01:00
Matt Sturgeon
2a91b89445
plugins/git: move to by-name
2024-09-09 11:50:40 +01:00
Matt Sturgeon
d016b139fc
plugins/filetrees: move to by-name
2024-09-09 11:50:40 +01:00
Matt Sturgeon
ad85cd760e
plugins/completion: move to by-name
...
- Move nvim-cmp to plugins/cmp
- Move other completion plugins to plugins/by-name
2024-09-09 11:50:40 +01:00
Matt Sturgeon
3211a63306
plugins/bufferlines: move to by-name
2024-09-09 11:50:40 +01:00
Matt Sturgeon
4491ce4db2
plugins/treesitter: move to by-name
2024-09-09 11:50:39 +01:00
Matt Sturgeon
8815180c62
plugins/lsp: move related plugins to by-name
2024-09-09 11:50:39 +01:00