mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	utility/undotree: removed unimportant boilerplate
This commit is contained in:
		
					parent
					
						
							
								b7b442737a
							
						
					
				
			
			
				commit
				
					
						81d566ac39
					
				
			
		
					 5 changed files with 20 additions and 20 deletions
				
			
		|  | @ -43,7 +43,7 @@ isMaximal: { | ||||||
|     # This section does not include a comprehensive list of available language modules. |     # This section does not include a comprehensive list of available language modules. | ||||||
|     # To list all available language module options, please visit the nvf manual. |     # To list all available language module options, please visit the nvf manual. | ||||||
|     languages = { |     languages = { | ||||||
|       enableFormat = true; # |       enableFormat = true; | ||||||
|       enableTreesitter = true; |       enableTreesitter = true; | ||||||
|       enableExtraDiagnostics = true; |       enableExtraDiagnostics = true; | ||||||
| 
 | 
 | ||||||
|  | @ -184,6 +184,7 @@ isMaximal: { | ||||||
|       project-nvim.enable = isMaximal; |       project-nvim.enable = isMaximal; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  |     undotree.enable = isMaximal; | ||||||
|     utility = { |     utility = { | ||||||
|       ccc.enable = false; |       ccc.enable = false; | ||||||
|       vim-wakatime.enable = false; |       vim-wakatime.enable = false; | ||||||
|  | @ -194,7 +195,6 @@ isMaximal: { | ||||||
|       leetcode-nvim.enable = isMaximal; |       leetcode-nvim.enable = isMaximal; | ||||||
|       multicursors.enable = isMaximal; |       multicursors.enable = isMaximal; | ||||||
|       smart-splits.enable = isMaximal; |       smart-splits.enable = isMaximal; | ||||||
| 
 |  | ||||||
|       motion = { |       motion = { | ||||||
|         hop.enable = true; |         hop.enable = true; | ||||||
|         leap.enable = true; |         leap.enable = true; | ||||||
|  | @ -238,7 +238,10 @@ isMaximal: { | ||||||
|           nix = "110"; |           nix = "110"; | ||||||
|           ruby = "120"; |           ruby = "120"; | ||||||
|           java = "130"; |           java = "130"; | ||||||
|           go = ["90" "130"]; |           go = [ | ||||||
|  |             "90" | ||||||
|  |             "130" | ||||||
|  |           ]; | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
|       fastaction.enable = true; |       fastaction.enable = true; | ||||||
|  |  | ||||||
|  | @ -26,5 +26,6 @@ | ||||||
|     ./wakatime |     ./wakatime | ||||||
|     ./yanky-nvim |     ./yanky-nvim | ||||||
|     ./yazi-nvim |     ./yazi-nvim | ||||||
|  |     ./undotree | ||||||
|   ]; |   ]; | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										6
									
								
								modules/plugins/utility/undotree/config.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/plugins/utility/undotree/config.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | { ... }: | ||||||
|  | { | ||||||
|  |   vim.lazy.plugins.undotree = { | ||||||
|  |     cmd = [ "UndotreeToggle" ]; | ||||||
|  |   }; | ||||||
|  | } | ||||||
							
								
								
									
										6
									
								
								modules/plugins/utility/undotree/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/plugins/utility/undotree/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | { | ||||||
|  |   imports = [ | ||||||
|  |     ./undotree.nix | ||||||
|  |     ./config.nix | ||||||
|  |   ]; | ||||||
|  | } | ||||||
|  | @ -1,25 +1,9 @@ | ||||||
| { lib, ... }: | { lib, ... }: | ||||||
| let | let | ||||||
|   inherit (lib.types) bool int; |   inherit (lib.options) mkEnableOption; | ||||||
|   inherit (lib.options) mkEnableOption mkOption; |  | ||||||
| 
 |  | ||||||
|   inherit (lib.nvim.types) mkPluginSetupOption; |  | ||||||
| in | in | ||||||
| { | { | ||||||
|   options.vim.undotree = { |   options.vim.undotree = { | ||||||
|     enable = mkEnableOption "undotree"; |     enable = mkEnableOption "undotree"; | ||||||
|     setupOpts = mkPluginSetupOption "undotree" { |  | ||||||
|       # enable_feature_a = mkOption { |  | ||||||
|       #   type = bool; |  | ||||||
|       #   default = false; |  | ||||||
|       #   # ... |  | ||||||
|       # }; |  | ||||||
|       # |  | ||||||
|       # number_option = mkOption { |  | ||||||
|       #   type = int; |  | ||||||
|       #   default = 3; |  | ||||||
|       #   # ... |  | ||||||
|       # }; |  | ||||||
|     }; |  | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Abhi
				Abhi