mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-03 20:22:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			358 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			358 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  lib,
 | 
						|
  config,
 | 
						|
  ...
 | 
						|
}: let
 | 
						|
  inherit (lib.modules) mkIf;
 | 
						|
 | 
						|
  cfg = config.vim.utility.undotree;
 | 
						|
in {
 | 
						|
  config = mkIf cfg.enable {
 | 
						|
    vim.lazy.plugins.undotree = {
 | 
						|
      package = "undotree";
 | 
						|
      cmd = [
 | 
						|
        "UndotreeToggle"
 | 
						|
        "UndotreeShow"
 | 
						|
        "UndotreeHide"
 | 
						|
        "UndotreePersistUndo"
 | 
						|
        "UndotreeFocus"
 | 
						|
      ];
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |