add nixvim as default EDITOR
This commit is contained in:
		
							parent
							
								
									4cd7fe6cfd
								
							
						
					
					
						commit
						326bd3cb03
					
				
					 3 changed files with 21 additions and 8 deletions
				
			
		|  | @ -16,9 +16,22 @@ in | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   config = mkIf cfg.enable { |   config = mkIf cfg.enable { | ||||||
|     environment.systemPackages = with pkgs; [ |     environment = { | ||||||
|  |       systemPackages = with pkgs; [ | ||||||
|         less |         less | ||||||
|         wyrdgard.neovim |         wyrdgard.neovim | ||||||
|       ]; |       ]; | ||||||
|  |       variables = { | ||||||
|  |         EDITOR = "nvim"; | ||||||
|  |         SUDOEDITOR = "nvim"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     wyrdgard.home = { | ||||||
|  |       extraOptions = { | ||||||
|  |         # Use Neovim for Git diffs. | ||||||
|  |         programs.fish.shellAliases.vimdiff = "nvim -d"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -28,7 +28,7 @@ let | ||||||
|     pkgs.runCommandNoCC "propagated-icon" |     pkgs.runCommandNoCC "propagated-icon" | ||||||
|       { |       { | ||||||
|         passthru = { |         passthru = { | ||||||
|           fileName = cfg.icon.fileName; |           inherit (fileName); | ||||||
|         }; |         }; | ||||||
|       } |       } | ||||||
|       '' |       '' | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue