mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	utility/undotree: use enable option
This commit is contained in:
		
					parent
					
						
							
								8fbecab446
							
						
					
				
			
			
				commit
				
					
						afe7559c8e
					
				
			
		
					 1 changed files with 19 additions and 9 deletions
				
			
		|  | @ -1,4 +1,13 @@ | ||||||
| { | { | ||||||
|  |   lib, | ||||||
|  |   config, | ||||||
|  |   ... | ||||||
|  | }: let | ||||||
|  |   inherit (lib.modules) mkIf; | ||||||
|  | 
 | ||||||
|  |   cfg = config.vim.utility.undotree; | ||||||
|  | in { | ||||||
|  |   config = mkIf cfg.enable { | ||||||
|     vim.lazy.plugins.undotree = { |     vim.lazy.plugins.undotree = { | ||||||
|       package = "undotree"; |       package = "undotree"; | ||||||
|       cmd = [ |       cmd = [ | ||||||
|  | @ -9,4 +18,5 @@ | ||||||
|         "UndotreeFocus" |         "UndotreeFocus" | ||||||
|       ]; |       ]; | ||||||
|     }; |     }; | ||||||
|  |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Joshua Manchester
				Joshua Manchester