mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-29 18:33:53 +00:00 
			
		
		
		
	mini/ai: init
This commit is contained in:
		
					parent
					
						
							
								9c09915170
							
						
					
				
			
			
				commit
				
					
						8923d3b891
					
				
			
		
					 8 changed files with 69 additions and 0 deletions
				
			
		
							
								
								
									
										13
									
								
								modules/plugins/mini/ai/ai.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								modules/plugins/mini/ai/ai.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: let | ||||
|   inherit (lib.options) mkEnableOption mkOption; | ||||
|   inherit (lib.nvim.types) mkPluginSetupOption; | ||||
| in { | ||||
|   options.vim.mini.ai = { | ||||
|     enable = mkEnableOption "mini.ai"; | ||||
|     setupOpts = mkPluginSetupOption "mini.ai" {}; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										19
									
								
								modules/plugins/mini/ai/config.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								modules/plugins/mini/ai/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.ai; | ||||
| in { | ||||
|   vim = mkIf cfg.enable { | ||||
|     startPlugins = ["mini-ai"]; | ||||
| 
 | ||||
|     pluginRC.mini-ai = entryAnywhere '' | ||||
|       require("mini.ai").setup(${toLuaObject cfg.setupOpts}) | ||||
|     ''; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										6
									
								
								modules/plugins/mini/ai/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/plugins/mini/ai/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./ai.nix | ||||
|     ./config.nix | ||||
|   ]; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 LilleAila
				LilleAila