Commit graph

90 commits

Author SHA1 Message Date
Matt Sturgeon
6d10fc0c87
flake: partition dev dependencies
This removes the need for end-users to manually set
`nixvim.inputs.devshell.follows = ""` (etc)

We offload evaluation of some of our flake modules into a `dev`
partition submodule.
- When its not needed, this submodule is not evaluated.
- When it is needed, it fetches extra inputs from `flake/dev/flake.nix`
  as part of evaluating the submodule.

See https://flake.parts/options/flake-parts-partitions.html
2025-02-23 17:23:57 +00:00
Gaetan Lepage
e7d827bb32 flake.nix: follow nixpkgs-unstable instead of nixos-unstable 2025-01-22 18:13:44 +01:00
Gaetan Lepage
998bae9dac flake-modules -> flake 2025-01-19 12:56:24 +01:00
Gaetan Lepage
e07a482fd8 flake: remove unneeded follows after git-hooks dropped their nixpkgs-stable input 2025-01-04 21:25:07 +00:00
Matt Sturgeon
f38400d959
flake: disable allow-import-from-derivation
Unfortunately this will print a confirmation when first using the flake:

```
do you want to allow configuration setting 'allow-import-from-derivation' to be set to 'false' (y/N)?
```

This is no different to the cachix configs though, so probably no big
deal.
2024-08-04 00:13:12 +01:00
Gaetan Lepage
fef6001b5d flake.nix: devshell no longer uses flake-utils, unpin it 2024-07-31 17:05:50 +02:00
traxys
42a7676d5a docs: Add an option search to our documentation 2024-07-25 14:00:35 +00:00
seth
41794c222a
flake: document optional inputs 2024-07-07 16:05:51 -04:00
seth
22a6678279
flake: deduplicate flake-compat 2024-07-07 15:08:33 -04:00
Matt Sturgeon
ec78d2e1ab
flake-modules: drop flake-root
treefmt isn't actually using flake-root to find the flake's root; it
does it itself.

All we were doing was passing flake-root's default `projectRootFile` to
treefmt, which is `"flake.nix"`;
2024-06-05 09:09:07 +01:00
Gaetan Lepage
bcfef991f8 flake: add the nix-community binary cache 2024-05-30 15:43:48 +02:00
Gaetan Lepage
1b892d0784 flake: rename pre-commit-hooks to git-hooks 2024-05-27 13:24:07 +02:00
Gaetan Lepage
f7f255afe2 flake-modules: add treefmt to fix the 'nix fmt' command 2024-05-07 22:52:27 +02:00
traxys
62f32bfc71 treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
Gaetan Lepage
274293fd69 flake/dev: add a convenient devshell 2024-03-02 14:51:00 +01:00
Gaetan Lepage
e76acb65b3 flake.nix: switch back to nixos-unstable for nixpkgs 2024-02-20 10:01:53 +01:00
Gaetan Lepage
1a3b4a1829 flake.nix: temporarily switch to nixpkgs-unstable 2024-02-19 08:27:35 +01:00
traxys
dcbe894bea
Fix issue with non flake import (#1102)
* Update flake compat

* tests: Add a test without flakes
2024-02-15 22:51:26 +01:00
traxys
2167c1930c
tests: Add a test for nix-darwin modules (#909) 2024-01-06 18:03:44 +01:00
traxys
96cdbc8177
tests: Add a test for the home-manager module (#901) 2024-01-06 17:31:17 +01:00
Gaetan Lepage
31284ddabe flake.nix: refactoring using flake-parts 2024-01-06 00:05:13 +01:00
Gaetan Lepage
6c3f97ccc0 tests: aggregate all test derivations into one using a linkFarm 2024-01-05 00:05:28 +01:00
traxys
2871dc94b4
Allow to add meta options like maintainers (#836) 2023-12-22 15:59:41 +01:00
traxys
1f652b60e5
standalone: Fix extraSpecialArgs (#799)
This commit fixes the usage of `extraSpecialArgs` for standalone nixvim
installations and adds a test to ensure this.

Fixes #779
2023-12-09 15:42:15 +01:00
Gaetan Lepage
13682651e7 flake.nix: remove useless beautysh input 2023-12-06 16:17:36 +01:00
traxys
541b694873
docs: Allow to install man pages (#687) 2023-11-06 16:26:23 +01:00
traxys
229fe85d6b
docs: Allow to generate man pages for nixvim (#686) 2023-11-06 11:52:30 +01:00
traxys
2031834990
fix: Enable helpers to be passed as an argument in nixvim (#688)
With this change `helpers` can be imported using `{pkgs, lib, helpers,
...}` instead of requiring to `import` it.
2023-11-05 18:34:32 +01:00
PatrickDaG
2019968548
flake: add overlay as an alternative to legacyPackages (#668) 2023-11-01 12:14:59 +01:00
traxys
b393989ba5
flake: Remove formatter excludes, as there are no more autogenerated files (#559) 2023-08-28 13:53:12 +02:00
traxys
09cefd2751
flake: Move helper derivations in a separate directory (#544) 2023-08-24 12:47:03 +02:00
Gaetan Lepage
3f2fd1c078 misc: remove nvfetcher 2023-08-24 11:21:27 +02:00
Wolbyte
ecd593386f
docs: New documentation using mdbook (#471)
* docs: mdbook init

* Separate sub-options into their section

* docs: enable fold

* docs: merge core options into a single section

* doc generation: fix submodules index pages

* docs: add contributing section

* docs: rename 'core' group to 'Neovim Options'

docs: removed the index pages of empty sections

docs: remove obsolete 'mergeFunctionResults' function

* docs: use nix syntax highlighting

* docs: point to the new repo url

* docs: use recursive generation
docs: split submodules into subsections

* docs: fix contributing separator
docs: fix missing submodules docs
2023-08-07 11:48:01 +02:00
Gaetan Lepage
885a746073 plugins/lsp: add nixd language server 2023-06-19 13:08:03 +02:00
Gaetan Lepage
0bd5ea6984 plugins/nvim-lsp: update package for some language servers 2023-06-19 10:23:03 +02:00
traxys
dfb2abd209
hooks: Add a hook for statix (#390) 2023-05-27 00:03:50 +02:00
Tanish2002
efdcbe225f perform some statix linting and fixes 2023-05-22 23:00:53 +02:00
Alexander Nortung
3600698aba
Added test for template and fixed check export for lib (#361) 2023-05-15 11:04:52 +02:00
Gaétan Lepage
52120a891d
flake: formatting (#342) 2023-04-21 10:16:01 +02:00
Pedro Alves
3ad504ed49 flake: fix my error and export raw modules properly 2023-04-21 01:36:49 +01:00
Pedro Alves
ffe3b6d3d8 flake: export raw modules 2023-04-21 01:34:53 +01:00
*Kim Zick
7f50b54bfb
tests/lib: Add basic unit tests for helpers.toLuaObject (#291) 2023-03-26 11:03:51 +02:00
Gaétan Lepage
db5061b4db
tests/plugins: refactor (#235) 2023-03-22 07:42:02 +01:00
traxys
6544e32396
plugins/nvim-lsp: Update rust-analyzer settings (#263) 2023-03-16 11:19:34 +01:00
traxys
416c719f47
plugins: Fetch the plugin sources from flake inputs (#247) 2023-03-14 23:48:27 +01:00
Alexander Nortung
2c333c86d0
Added nix check and pre commit hook for formatting (#220)
* Added nix check and pre commit hook for formatting

* Removed nix fmt check from CI
2023-03-06 15:06:16 +00:00
Alexander Nortung
2258eb8df8
misc: added flake template (#219)
* Added simple flake template

* Added readme to template

* Updated readme to show how to use the template

* Formatting

* removed unused file from template

* Fixed template url and pkgs

* Formatting
2023-03-03 09:18:52 +00:00
traxys
abc2d19a06
tests: Implement a way to test nixvim (#199)
The tests can be executed using `nix flake check`, they check that
modules can be built, and they execute in neovim without any errors.

This commit only implements tests for tokyonight-nvim upstream defaults
2023-02-28 23:39:55 +00:00
Pedro Alves
df7a6500e4 add nixpkgs to flake inputs 2023-02-20 11:14:07 +00:00
Gaétan Lepage
264de8cefb
added formatter + reformat existing codebase (#175) 2023-02-20 10:42:13 +00:00