migrate to tpope stuff
This commit is contained in:
		
							parent
							
								
									1776ff3828
								
							
						
					
					
						commit
						8ae42d19fb
					
				
					 4 changed files with 12 additions and 39 deletions
				
			
		| 
						 | 
					@ -19,9 +19,10 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Editor plugins and configurations
 | 
					    # Editor plugins and configurations
 | 
				
			||||||
    ./plugins/editor/buffers.nix
 | 
					    ./plugins/editor/buffers.nix
 | 
				
			||||||
    ./plugins/editor/comment.nix
 | 
					    ./plugins/editor/commentary.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/treesitter.nix
 | 
					    ./plugins/editor/treesitter.nix
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # UI plugins
 | 
					    # UI plugins
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,38 +0,0 @@
 | 
				
			||||||
{...}: {
 | 
					 | 
				
			||||||
  plugins.comment = {
 | 
					 | 
				
			||||||
    enable = true;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    settings = {
 | 
					 | 
				
			||||||
      toggler = {
 | 
					 | 
				
			||||||
        line = "<leader>/n";
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      opleader = {
 | 
					 | 
				
			||||||
        line = "<leader>/l";
 | 
					 | 
				
			||||||
        block = "<leader>/b";
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      extra = {
 | 
					 | 
				
			||||||
        above = "<leader>/o";
 | 
					 | 
				
			||||||
        below = "<leader>/e";
 | 
					 | 
				
			||||||
        eol = "<leader>/i";
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      mappings = {
 | 
					 | 
				
			||||||
        basic = true;
 | 
					 | 
				
			||||||
        extra = true;
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  keymaps = [
 | 
					 | 
				
			||||||
    { 
 | 
					 | 
				
			||||||
      mode = ["n" "v"];
 | 
					 | 
				
			||||||
      key = "<leader>/";
 | 
					 | 
				
			||||||
      action = "<Nop>";
 | 
					 | 
				
			||||||
      options = {
 | 
					 | 
				
			||||||
        desc = "+comment";
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  ];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
							
								
								
									
										5
									
								
								config/plugins/editor/commentary.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								config/plugins/editor/commentary.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					{...}: {
 | 
				
			||||||
 | 
					  plugins.commentary = {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										5
									
								
								config/plugins/editor/surround.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								config/plugins/editor/surround.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					{...}:{
 | 
				
			||||||
 | 
					  plugins.vim-surround = {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue