mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 01:25:22 +02:00
nixvim: support standalone nixvim
This represents a major rearchitecture for nixvim, so I'm leaving this up to track the progress for now, and to serve as a reference for any breaking changes during transition. The main change is, of course, being able to use nixvim standalone. To do this, you should use the new build function, which takes in two arguments: the system architecture (e.g. x86_64-linux) and the configuration. For the new configuration, do not use the programs.nixvim. prefix. For module development, the main change is that you should no longer prefix your modules with programs.nixvim..
This commit is contained in:
parent
bd6f978d51
commit
4ddd3969e5
52 changed files with 1410 additions and 904 deletions
19
README.md
19
README.md
|
@ -75,6 +75,25 @@ You can now access the module using `inputs.nixvim.homeManagerModules.nixvim`,
|
|||
for a home-manager instalation, and `inputs.nixvim.nixosModules.nixvim`, if
|
||||
you're not using it.
|
||||
|
||||
## Usage
|
||||
NixVim can be used in three ways: through the home-manager and NixOS modules,
|
||||
and through the `build` function. To use the modules, just import the
|
||||
`nixvim.homeManagerModules.${system}.nixvim` and
|
||||
`nixvim.nixosModules.${system}.nixvim` modules, depending on which system
|
||||
you're using.
|
||||
|
||||
If you want to use it standalone, you can use the `build` function:
|
||||
|
||||
```nix
|
||||
{ pkgs, nixvim, ... }: {
|
||||
environment.systemModules = [
|
||||
(nixvim.build pkgs {
|
||||
colorschemes.gruvbox.enable = true;
|
||||
})
|
||||
];
|
||||
}
|
||||
```
|
||||
|
||||
## How does it work?
|
||||
When you build the module (probably using home-manager), it will install all
|
||||
your plugins and generate a lua config for NeoVim with all the options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue