mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	utility/mkdir-nvim: init
This commit is contained in:
		
					parent
					
						
							
								27978c7186
							
						
					
				
			
			
				commit
				
					
						85ca2bc11f
					
				
			
		
					 6 changed files with 40 additions and 0 deletions
				
			
		|  | @ -200,6 +200,8 @@ | ||||||
| [alfarel](https://github.com/alfarelcynthesis): | [alfarel](https://github.com/alfarelcynthesis): | ||||||
| 
 | 
 | ||||||
| - Add missing `yazi.nvim` dependency (`snacks.nvim`). | - Add missing `yazi.nvim` dependency (`snacks.nvim`). | ||||||
|  | - Add [mkdir.nvim](https://github.com/jghauser/mkdir.nvim) plugin | ||||||
|  |   for automatic creation of parent directories when editing a nested file. | ||||||
| 
 | 
 | ||||||
| [TheColorman](https://github.com/TheColorman) | [TheColorman](https://github.com/TheColorman) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
|     ./icon-picker |     ./icon-picker | ||||||
|     ./images |     ./images | ||||||
|     ./leetcode-nvim |     ./leetcode-nvim | ||||||
|  |     ./mkdir | ||||||
|     ./motion |     ./motion | ||||||
|     ./multicursors |     ./multicursors | ||||||
|     ./new-file-template |     ./new-file-template | ||||||
|  |  | ||||||
							
								
								
									
										12
									
								
								modules/plugins/utility/mkdir/config.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								modules/plugins/utility/mkdir/config.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | ||||||
|  | { | ||||||
|  |   config, | ||||||
|  |   lib, | ||||||
|  |   ... | ||||||
|  | }: let | ||||||
|  |   inherit (lib.modules) mkIf; | ||||||
|  |   cfg = config.vim.utility.mkdir; | ||||||
|  | in { | ||||||
|  |   vim = mkIf cfg.enable { | ||||||
|  |     startPlugins = ["mkdir-nvim"]; | ||||||
|  |   }; | ||||||
|  | } | ||||||
							
								
								
									
										6
									
								
								modules/plugins/utility/mkdir/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/plugins/utility/mkdir/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | { | ||||||
|  |   imports = [ | ||||||
|  |     ./config.nix | ||||||
|  |     ./mkdir.nix | ||||||
|  |   ]; | ||||||
|  | } | ||||||
							
								
								
									
										7
									
								
								modules/plugins/utility/mkdir/mkdir.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								modules/plugins/utility/mkdir/mkdir.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | ||||||
|  | {lib, ...}: let | ||||||
|  |   inherit (lib.options) mkEnableOption; | ||||||
|  | in { | ||||||
|  |   options.vim.utility.mkdir.enable = mkEnableOption '' | ||||||
|  |     parent directory creation when editing a nested path that does not exist using `mkdir.nvim` | ||||||
|  |   ''; | ||||||
|  | } | ||||||
|  | @ -1205,6 +1205,18 @@ | ||||||
|       "url": "https://github.com/wfxr/minimap.vim/archive/57287e2dd28fa3e63276a32d11c729df14741d54.tar.gz", |       "url": "https://github.com/wfxr/minimap.vim/archive/57287e2dd28fa3e63276a32d11c729df14741d54.tar.gz", | ||||||
|       "hash": "05k4cgcrz0gj92xy685bd4p6nh2jmaywc2f5sw1lap0v685h7n79" |       "hash": "05k4cgcrz0gj92xy685bd4p6nh2jmaywc2f5sw1lap0v685h7n79" | ||||||
|     }, |     }, | ||||||
|  |     "mkdir-nvim": { | ||||||
|  |       "type": "Git", | ||||||
|  |       "repository": { | ||||||
|  |         "type": "GitHub", | ||||||
|  |         "owner": "jghauser", | ||||||
|  |         "repo": "mkdir.nvim" | ||||||
|  |       }, | ||||||
|  |       "branch": "main", | ||||||
|  |       "revision": "c55d1dee4f099528a1853b28bb28caa802eba217", | ||||||
|  |       "url": "https://github.com/jghauser/mkdir.nvim/archive/c55d1dee4f099528a1853b28bb28caa802eba217.tar.gz", | ||||||
|  |       "hash": "0zpyvkbw7wfqdxfgidr7zfxqb5ldci4pflx50rsm1hbwai0ybv23" | ||||||
|  |     }, | ||||||
|     "modes-nvim": { |     "modes-nvim": { | ||||||
|       "type": "Git", |       "type": "Git", | ||||||
|       "repository": { |       "repository": { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 alfarel
				alfarel