mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-03 20:22:21 +00:00 
			
		
		
		
	docs/installation: fix logical errors in standalone chapters
This commit is contained in:
		
					parent
					
						
							
								71e7072fcf
							
						
					
				
			
			
				commit
				
					
						4e82ded53a
					
				
			
		
					 2 changed files with 13 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -6,7 +6,7 @@ your system packages to make it available across your system.
 | 
			
		|||
 | 
			
		||||
The following is an example installation of `nvf` as a standalone package with
 | 
			
		||||
the default theme enabled. You may use other options inside `config.vim` in
 | 
			
		||||
`configModule`, but this example will not cover that.
 | 
			
		||||
`configModule`, but this example will not cover that extensively.
 | 
			
		||||
 | 
			
		||||
```nix
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -30,23 +30,22 @@ the default theme enabled. You may use other options inside `config.vim` in
 | 
			
		|||
    };
 | 
			
		||||
 | 
			
		||||
    customNeovim = nvf.lib.neovimConfiguration {
 | 
			
		||||
      modules = [configModule];
 | 
			
		||||
      inherit pkgs;
 | 
			
		||||
      modules = [configModule];
 | 
			
		||||
    };
 | 
			
		||||
  in {
 | 
			
		||||
    # this will make the package available as a flake input
 | 
			
		||||
    # This will make the package available as a flake output under 'packages'
 | 
			
		||||
    packages.${system}.my-neovim = customNeovim.neovim;
 | 
			
		||||
 | 
			
		||||
    # this is an example home-manager configuration
 | 
			
		||||
    # using the built neovim package
 | 
			
		||||
    # Example Home-Manager configuration using the configured Neovim package
 | 
			
		||||
    homeConfigurations = {
 | 
			
		||||
      "your-username@your-hostname" = home-manager.lib.homeManagerConfiguration {
 | 
			
		||||
        # ...
 | 
			
		||||
        modules = [
 | 
			
		||||
          ./home.nix
 | 
			
		||||
 | 
			
		||||
          # this will make wrapped neovim available in your system packages
 | 
			
		||||
          {environment.systemPackages = [customNeovim.neovim];}
 | 
			
		||||
          # This will make Neovim available to users using the Home-Manager
 | 
			
		||||
          # configuration. To make the package available to all users, prefer
 | 
			
		||||
          # environment.systemPackages in your NixOS configuration.
 | 
			
		||||
          {home.packages = [customNeovim.neovim];}
 | 
			
		||||
        ];
 | 
			
		||||
        # ...
 | 
			
		||||
      };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue