Commit graph

16 commits

Author SHA1 Message Date
Matt Sturgeon
3f7e6ce850
wrappers: expose config in standalone output (#1356) 2024-04-01 17:12:25 +02:00
traxys
9cd3721adf
standalone: Allow to extend a standalone derivation with a new module (#1142)
This adds the `nixvimExtend` attribute to the generated standalone
derivation, this attribute takes a module as an argument and returns a
new standalone derivation with the initial module & the extended module
merged together.
2024-02-22 08:22:21 +01:00
traxys
6d7e429537
tests: Introduce a way to disable options when running in tests (#1095)
In our basic template we used to provide a check based on
`mkTestDerivationFromNvim`. The issue with this check (that is handled
correctly internally) is that some plugins _can't_ be used in the test
environment, for example image.nvim like in #1085.

This commit introduces a new function to generate such checks,
`mkTestDerivationFromNixvimModule`, that wraps a nixvim configuration
instead of a built nvim instance.

Then a configuration can rely on the newly added
`helpers.enableExceptInTests` attribute to disable parts of the
configuration depending if it is evaluated in tests or in a real final
configuration.

Resolves #1085
2024-02-15 14:27:45 +01:00
Gaetan Lepage
5d3ed3a09e misc: refactor helpers propagation
Co-authored-by: Robert Hensing <robert@roberthensing.nl>
2024-02-09 14:20:25 +01:00
Mirko Lenz
46ca452d0b
standalone: pass extraSpecialArgs to lib.evalModules directly (#914) 2024-01-07 20:49:17 +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
45d788bdd9 wrappers: add nixvim-print-init package 2023-12-07 14:38:21 +01:00
traxys
b58b23c799
wrapper: Use symlink join to install man pages for standalone (#736)
Patching the derivation forces a rebuild of neovim, which is
undesirable
2023-11-23 22:11:29 +01:00
Gaetan Lepage
a05b2a9cbf wrappers/standalone: fix 2023-11-21 10:00:48 +01:00
traxys
541b694873
docs: Allow to install man pages (#687) 2023-11-06 16:26:23 +01:00
traxys
0c5dcb56d1
standalone: Allow to pass extraSpecialArgs (#665) 2023-10-23 14:11:29 +02:00
Luc Chabassier
a6eec507cc
Enable creation of other config files than init.lua (#246) 2023-04-20 22:41:37 +02:00
Gaétan Lepage
d6373c62ae
wrappers/standalone: handle assertions (#305) 2023-03-31 15:10:27 +02:00
Gaétan Lepage
264de8cefb
added formatter + reformat existing codebase (#175) 2023-02-20 10:42:13 +00: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
Luc Chabassier
f2a103da30
Allow using global config with hm and nixos (#48)
* remove useless nixvim file

* reorganize flake outputs

* use global config file with home-manager and nixos
2022-10-17 14:08:17 +01:00