File tree 4 files changed +73
-0
lines changed
4 files changed +73
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Nixvim template
2
+
3
+ This template gives you a good starting point for configuring nixvim standalone.
4
+
5
+ ## Configuring
6
+
7
+ To start configuring, just add or modify the nix files in ` ./config ` .
8
+ If you add a new configuration file, remember to add it to the
9
+ [ ` config/default.nix ` ] ( ./config/default.nix ) file
10
+
11
+ ## Testing your new configuration
12
+
13
+ To test your configuration simply run the following command
14
+
15
+ ```
16
+ nix run .
17
+ ```
Original file line number Diff line number Diff line change
1
+ {
2
+ plugins . bufferline = {
3
+ enable = true ;
4
+ } ;
5
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ # Import all your configuration modules here
3
+ imports = [ ./bufferline.nix ] ;
4
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ description = "A nixvim configuration" ;
3
+
4
+ inputs = {
5
+ nixpkgs . url = "github:nixos/nixpkgs/nixos-unstable" ;
6
+ nixvim . url = "github:nix-community/nixvim" ;
7
+ flake-parts . url = "github:hercules-ci/flake-parts" ;
8
+ } ;
9
+
10
+ outputs =
11
+ { nixvim , flake-parts , ... } @inputs :
12
+ flake-parts . lib . mkFlake { inherit inputs ; } {
13
+ systems = [
14
+ "x86_64-linux"
15
+ "aarch64-linux"
16
+ "x86_64-darwin"
17
+ "aarch64-darwin"
18
+ ] ;
19
+
20
+ perSystem =
21
+ { pkgs , system , ... } :
22
+ let
23
+ nixvimLib = nixvim . lib . ${ system } ;
24
+ nixvim' = nixvim . legacyPackages . ${ system } ;
25
+ nixvimModule = {
26
+ inherit pkgs ;
27
+ module = import ./config ; # import the module directly
28
+ # You can use `extraSpecialArgs` to pass additional arguments to your module files
29
+ extraSpecialArgs = {
30
+ # inherit (inputs) foo;
31
+ } ;
32
+ } ;
33
+ nvim = nixvim' . makeNixvimWithModule nixvimModule ;
34
+ in
35
+ {
36
+ checks = {
37
+ # Run `nix flake check .` to verify that your config is not broken
38
+ default = nixvimLib . check . mkTestDerivationFromNixvimModule nixvimModule ;
39
+ } ;
40
+
41
+ packages = {
42
+ # Lets you run `nix run .` to start nixvim
43
+ default = nvim ;
44
+ } ;
45
+ } ;
46
+ } ;
47
+ }
You can’t perform that action at this time.
0 commit comments