install mini.ai
This commit is contained in:
		
							parent
							
								
									8ae42d19fb
								
							
						
					
					
						commit
						5df9ad4227
					
				
					 2 changed files with 32 additions and 0 deletions
				
			
		| 
						 | 
					@ -20,6 +20,7 @@
 | 
				
			||||||
    # Editor plugins and configurations
 | 
					    # Editor plugins and configurations
 | 
				
			||||||
    ./plugins/editor/buffers.nix
 | 
					    ./plugins/editor/buffers.nix
 | 
				
			||||||
    ./plugins/editor/commentary.nix
 | 
					    ./plugins/editor/commentary.nix
 | 
				
			||||||
 | 
					    ./plugins/editor/mini.nix
 | 
				
			||||||
    ./plugins/editor/sessions.nix
 | 
					    ./plugins/editor/sessions.nix
 | 
				
			||||||
    ./plugins/editor/smart-splits.nix
 | 
					    ./plugins/editor/smart-splits.nix
 | 
				
			||||||
    ./plugins/editor/surround.nix
 | 
					    ./plugins/editor/surround.nix
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										31
									
								
								config/plugins/editor/mini.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								config/plugins/editor/mini.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,31 @@
 | 
				
			||||||
 | 
					{...}:{
 | 
				
			||||||
 | 
					  plugins.mini = {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Extend and create a/i textobjects.
 | 
				
			||||||
 | 
					    modules.ai = {
 | 
				
			||||||
 | 
					      # Module mappings.
 | 
				
			||||||
 | 
					      mappings = {
 | 
				
			||||||
 | 
					        # Main textobject prefixes
 | 
				
			||||||
 | 
					        around = "a";
 | 
				
			||||||
 | 
					        inside = "i";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # Next/last variants
 | 
				
			||||||
 | 
					        around_next = "an";
 | 
				
			||||||
 | 
					        inside_next = "in";
 | 
				
			||||||
 | 
					        around_last = "al";
 | 
				
			||||||
 | 
					        inside_last = "il";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # Move cursor to corresponding edge of `a` textobject
 | 
				
			||||||
 | 
					        goto_left = "g[";
 | 
				
			||||||
 | 
					        goto_right = "g]";
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # Number of lines within which textobject is searched
 | 
				
			||||||
 | 
					      n_lines = 50;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # How to search for object
 | 
				
			||||||
 | 
					      search_method = "cover_or_next";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue