added better keybind for treesj.
This commit is contained in:
		
							parent
							
								
									9d03357d45
								
							
						
					
					
						commit
						ec2a7506a3
					
				
					 1 changed files with 16 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -29,7 +29,22 @@
 | 
			
		|||
        extraPlugins = with pkgs.vimPlugins; [
 | 
			
		||||
          treesj
 | 
			
		||||
        ];
 | 
			
		||||
        extraConfigLua = ''require("treesj").setup({})'';
 | 
			
		||||
        extraConfigLua = ''
 | 
			
		||||
          require("treesj").setup({
 | 
			
		||||
              use_default_keymaps=false,
 | 
			
		||||
          })
 | 
			
		||||
        '';
 | 
			
		||||
        keymaps = [
 | 
			
		||||
          {
 | 
			
		||||
            action = ":TSJToggle<CR>";
 | 
			
		||||
            key = "<leader>j";
 | 
			
		||||
            mode = "n";
 | 
			
		||||
            options = {
 | 
			
		||||
              silent = true;
 | 
			
		||||
              desc = "tree sitter join toggle";
 | 
			
		||||
            };
 | 
			
		||||
          }
 | 
			
		||||
        ];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  imports = [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue