mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	feat: apply new module format to UI plugins
This commit is contained in:
		
					parent
					
						
							
								211344d65c
							
						
					
				
			
			
				commit
				
					
						848fc5f57c
					
				
			
		
					 4 changed files with 21 additions and 5 deletions
				
			
		|  | @ -1,5 +1,5 @@ | ||||||
| _: { | _: { | ||||||
|   imports = [ |   imports = [ | ||||||
|     ./noice.nix |     ./noice | ||||||
|   ]; |   ]; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -8,10 +8,6 @@ with lib; | ||||||
| with builtins; let | with builtins; let | ||||||
|   cfg = config.vim.ui.noice; |   cfg = config.vim.ui.noice; | ||||||
| in { | in { | ||||||
|   options.vim.ui.noice = { |  | ||||||
|     enable = mkEnableOption "noice-nvim"; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   config = mkIf cfg.enable { |   config = mkIf cfg.enable { | ||||||
|     vim.startPlugins = [ |     vim.startPlugins = [ | ||||||
|       "noice-nvim" |       "noice-nvim" | ||||||
							
								
								
									
										6
									
								
								modules/ui/noice/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/ui/noice/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | _: { | ||||||
|  |   imports = [ | ||||||
|  |     ./noice.nix | ||||||
|  |     ./config.nix | ||||||
|  |   ]; | ||||||
|  | } | ||||||
							
								
								
									
										14
									
								
								modules/ui/noice/noice.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								modules/ui/noice/noice.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | ||||||
|  | { | ||||||
|  |   pkgs, | ||||||
|  |   config, | ||||||
|  |   lib, | ||||||
|  |   ... | ||||||
|  | }: | ||||||
|  | with lib; | ||||||
|  | with builtins; let | ||||||
|  |   cfg = config.vim.ui.noice; | ||||||
|  | in { | ||||||
|  |   options.vim.ui.noice = { | ||||||
|  |     enable = mkEnableOption "noice-nvim"; | ||||||
|  |   }; | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 NotAShelf
				NotAShelf