mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			500 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			500 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {lib, ...}: let
 | |
|   inherit (lib.options) mkEnableOption;
 | |
|   inherit (lib.nvim.types) mkPluginSetupOption;
 | |
| in {
 | |
|   options.vim.treesitter.textobjects = {
 | |
|     enable = mkEnableOption "Treesitter textobjects";
 | |
|     setupOpts =
 | |
|       mkPluginSetupOption "treesitter-textobjects" {}
 | |
|       // {
 | |
|         example = {
 | |
|           select = {
 | |
|             enable = true;
 | |
|             lookahead = true;
 | |
|             keymaps = {
 | |
|               af = "@function.outer";
 | |
|             };
 | |
|           };
 | |
|         };
 | |
|       };
 | |
|   };
 | |
| }
 | 
