Commit graph

83 commits

Author SHA1 Message Date
Matt Sturgeon
22f1c8a246
flake: use 24.05 home-manager branch 2024-06-20 22:07:29 +01:00
Gaetan Lepage
b0b03c79db RELEASE: branch-off for nixos-24.05 2024-06-06 14:07:12 +02: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
Gaétan Lepage
c73bef16ab
helpers: add mkPackageOption + refactoring (#144) (#150) 2023-01-25 18:46:49 +00:00
Pedro Alves
2d54272177
Revert "helpers: add mkPackageOption + refactoring (#144)" (#149)
This reverts commit b724085447.
2023-01-25 00:03:26 +00:00
Gaétan Lepage
b724085447
helpers: add mkPackageOption + refactoring (#144) 2023-01-24 23:59:06 +00:00
traxys
2f2f724f6a
nvim-lsp: Add settings for rust-analyzer (#113)
* nvim-lsp: Add settings for rust-analyzer

Because the settings are quite complex they are auto-generated. This
commit adds the script creating it & the generated options.

* Update flake.nix

Co-authored-by: Pedro Alves <pta2002@users.noreply.github.com>
2023-01-21 17:15:46 +00:00
Gaétan Lepage
3c918cfc92
misc: remove trailing whitespaces (#121)
Co-authored-by: Pedro Alves <pta2002@users.noreply.github.com>
2023-01-21 17:12:09 +00:00
Pedro Alves
7807c51ccf nixvim: add nix-darwin wrapper 2022-12-30 21:14:54 +01:00
traxys
660c9319e1
wrappers: Extend and document the makeNixvim function (#86)
* wrappers: Allow to customize the nixpkgs used for nixvim

This allows to pass overlays and other such modifications of nixpkgs.

* wrappers: Allow to pass a custom module to nixvim

This is useful to be able to take full advantage of the Nix module
system, with `imports` and `options`.

* README: Update the documentation on the standalone usage

The following information were out of date or incomplete:

- The `build` function has be changed to the `makeNixvim` function.
- `makeNixvimWithModule` has been introduced in order to allow more
customization.
- Added a full example using nixvim in a standalone flake
2022-12-29 17:51:57 +00:00