mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	mini/indentscope: init
This commit is contained in:
		
					parent
					
						
							
								f31b2e06cb
							
						
					
				
			
			
				commit
				
					
						be7d949605
					
				
			
		
					 7 changed files with 62 additions and 0 deletions
				
			
		|  | @ -74,6 +74,7 @@ | ||||||
|   - `mini.hipatterns` |   - `mini.hipatterns` | ||||||
|   - `mini.hues` |   - `mini.hues` | ||||||
|   - `mini.icons` |   - `mini.icons` | ||||||
|  |   - `mini.indentscope` | ||||||
| 
 | 
 | ||||||
| [kaktu5](https://github.com/kaktu5): | [kaktu5](https://github.com/kaktu5): | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										17
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										17
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							|  | @ -1256,6 +1256,22 @@ | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     "plugin-mini-indentscope": { | ||||||
|  |       "flake": false, | ||||||
|  |       "locked": { | ||||||
|  |         "lastModified": 1737036220, | ||||||
|  |         "narHash": "sha256-Mrzc7oHXxyEGqdE003qiC9unScyb7i5A6+l8Do7yxws=", | ||||||
|  |         "owner": "echasnovski", | ||||||
|  |         "repo": "mini.indentscope", | ||||||
|  |         "rev": "613df2830d7faeae7483ba2e736683154b95921e", | ||||||
|  |         "type": "github" | ||||||
|  |       }, | ||||||
|  |       "original": { | ||||||
|  |         "owner": "echasnovski", | ||||||
|  |         "repo": "mini.indentscope", | ||||||
|  |         "type": "github" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|     "plugin-minimap-vim": { |     "plugin-minimap-vim": { | ||||||
|       "flake": false, |       "flake": false, | ||||||
|       "locked": { |       "locked": { | ||||||
|  | @ -2472,6 +2488,7 @@ | ||||||
|         "plugin-mini-hipatterns": "plugin-mini-hipatterns", |         "plugin-mini-hipatterns": "plugin-mini-hipatterns", | ||||||
|         "plugin-mini-hues": "plugin-mini-hues", |         "plugin-mini-hues": "plugin-mini-hues", | ||||||
|         "plugin-mini-icons": "plugin-mini-icons", |         "plugin-mini-icons": "plugin-mini-icons", | ||||||
|  |         "plugin-mini-indentscope": "plugin-mini-indentscope", | ||||||
|         "plugin-minimap-vim": "plugin-minimap-vim", |         "plugin-minimap-vim": "plugin-minimap-vim", | ||||||
|         "plugin-modes-nvim": "plugin-modes-nvim", |         "plugin-modes-nvim": "plugin-modes-nvim", | ||||||
|         "plugin-neo-tree-nvim": "plugin-neo-tree-nvim", |         "plugin-neo-tree-nvim": "plugin-neo-tree-nvim", | ||||||
|  |  | ||||||
|  | @ -845,5 +845,10 @@ | ||||||
|       url = "github:echasnovski/mini.icons"; |       url = "github:echasnovski/mini.icons"; | ||||||
|       flake = false; |       flake = false; | ||||||
|     }; |     }; | ||||||
|  | 
 | ||||||
|  |     plugin-mini-indentscope = { | ||||||
|  |       url = "github:echasnovski/mini.indentscope"; | ||||||
|  |       flake = false; | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -20,5 +20,6 @@ | ||||||
|     ./hipatterns |     ./hipatterns | ||||||
|     ./hues |     ./hues | ||||||
|     ./icons |     ./icons | ||||||
|  |     ./indentscope | ||||||
|   ]; |   ]; | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										19
									
								
								modules/plugins/mini/indentscope/config.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								modules/plugins/mini/indentscope/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.indentscope; | ||||||
|  | in { | ||||||
|  |   vim = mkIf cfg.enable { | ||||||
|  |     startPlugins = ["mini-indentscope"]; | ||||||
|  | 
 | ||||||
|  |     pluginRC.mini-indentscope = entryAnywhere '' | ||||||
|  |       require("mini.indentscope").setup(${toLuaObject cfg.setupOpts}) | ||||||
|  |     ''; | ||||||
|  |   }; | ||||||
|  | } | ||||||
							
								
								
									
										6
									
								
								modules/plugins/mini/indentscope/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/plugins/mini/indentscope/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | { | ||||||
|  |   imports = [ | ||||||
|  |     ./indentscope.nix | ||||||
|  |     ./config.nix | ||||||
|  |   ]; | ||||||
|  | } | ||||||
							
								
								
									
										13
									
								
								modules/plugins/mini/indentscope/indentscope.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								modules/plugins/mini/indentscope/indentscope.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | ||||||
|  | { | ||||||
|  |   config, | ||||||
|  |   lib, | ||||||
|  |   ... | ||||||
|  | }: let | ||||||
|  |   inherit (lib.options) mkEnableOption mkOption; | ||||||
|  |   inherit (lib.nvim.types) mkPluginSetupOption; | ||||||
|  | in { | ||||||
|  |   options.vim.mini.indentscope = { | ||||||
|  |     enable = mkEnableOption "mini.indentscope"; | ||||||
|  |     setupOpts = mkPluginSetupOption "mini.indentscope" {}; | ||||||
|  |   }; | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 LilleAila
				LilleAila