mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	feat: apply new module format to snippet plugins
This commit is contained in:
		
					parent
					
						
							
								97899667db
							
						
					
				
			
			
				commit
				
					
						d5082e5ef2
					
				
			
		
					 4 changed files with 21 additions and 11 deletions
				
			
		
							
								
								
									
										14
									
								
								modules/snippets/vsnip/config.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								modules/snippets/vsnip/config.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| { | ||||
|   pkgs, | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; let | ||||
|   cfg = config.vim.snippets.vsnip; | ||||
| in { | ||||
|   config = mkIf cfg.enable { | ||||
|     vim.startPlugins = ["vim-vsnip"]; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										5
									
								
								modules/snippets/vsnip/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								modules/snippets/vsnip/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| _: { | ||||
|   imports = [ | ||||
|     ./vsnip.nix | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										14
									
								
								modules/snippets/vsnip/vsnip.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								modules/snippets/vsnip/vsnip.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| { | ||||
|   pkgs, | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; let | ||||
|   cfg = config.vim.snippets.vsnip; | ||||
| in { | ||||
|   options.vim.snippets.vsnip = { | ||||
|     enable = mkEnableOption "Enable vim-vsnip"; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 NotAShelf
				NotAShelf