mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	mini/snippets: init
This commit is contained in:
		
					parent
					
						
							
								39d8f52f0e
							
						
					
				
			
			
				commit
				
					
						7fc00f75f6
					
				
			
		
					 7 changed files with 62 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								modules/plugins/mini/snippets/config.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								modules/plugins/mini/snippets/config.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: let | ||||
|   inherit (lib.modules) mkIf; | ||||
|   inherit (lib.nvim.dag) entryAnywhere; | ||||
|   inherit (lib.nvim.lua) toLuaObject; | ||||
| 
 | ||||
|   cfg = config.vim.mini.snippets; | ||||
| in { | ||||
|   vim = mkIf cfg.enable { | ||||
|     startPlugins = ["mini-snippets"]; | ||||
| 
 | ||||
|     pluginRC.mini-snippets = entryAnywhere '' | ||||
|       require("mini.snippets").setup(${toLuaObject cfg.setupOpts}) | ||||
|     ''; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										6
									
								
								modules/plugins/mini/snippets/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/plugins/mini/snippets/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./snippets.nix | ||||
|     ./config.nix | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										13
									
								
								modules/plugins/mini/snippets/snippets.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								modules/plugins/mini/snippets/snippets.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: let | ||||
|   inherit (lib.options) mkEnableOption mkOption; | ||||
|   inherit (lib.nvim.types) mkPluginSetupOption; | ||||
| in { | ||||
|   options.vim.mini.snippets = { | ||||
|     enable = mkEnableOption "mini.snippets"; | ||||
|     setupOpts = mkPluginSetupOption "mini.snippets" {}; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 LilleAila
				LilleAila