migrate to oil.nvim
This commit is contained in:
		
							parent
							
								
									eae19b0c19
								
							
						
					
					
						commit
						33110b0465
					
				
					 4 changed files with 17 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -18,7 +18,6 @@
 | 
			
		|||
 | 
			
		||||
    # UI plugins
 | 
			
		||||
    ./plugins/ui/lualine.nix
 | 
			
		||||
    ./plugins/ui/neo-tree.nix
 | 
			
		||||
    ./plugins/ui/web-devicons.nix
 | 
			
		||||
    ./plugins/ui/whichkey.nix
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -34,6 +33,7 @@
 | 
			
		|||
    # Utils
 | 
			
		||||
    ./plugins/utils/markdown-preview.nix
 | 
			
		||||
    ./plugins/utils/render-markdown.nix
 | 
			
		||||
    ./plugins/utils/oil.nix
 | 
			
		||||
    ./plugins/utils/telescope.nix
 | 
			
		||||
    ./plugins/utils/todo-comments.nix
 | 
			
		||||
    ./plugins/utils/vimtex.nix
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,10 +1,6 @@
 | 
			
		|||
{ ... }: {
 | 
			
		||||
  plugins.auto-session = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    settings = {
 | 
			
		||||
      pre_save_cmds = ["Neotree close"];
 | 
			
		||||
      post_restore_cmds = ["Neotree show"];
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  keymaps = [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,22 +0,0 @@
 | 
			
		|||
{...}: {
 | 
			
		||||
  plugins.neo-tree = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    eventHandlers = {
 | 
			
		||||
      neo_tree_window_after_open = ''
 | 
			
		||||
        function(_)
 | 
			
		||||
          vim.cmd("wincmd =")
 | 
			
		||||
        end
 | 
			
		||||
      '';
 | 
			
		||||
    };
 | 
			
		||||
    closeIfLastWindow = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  keymaps = [
 | 
			
		||||
    {
 | 
			
		||||
      mode = "n";
 | 
			
		||||
      key = "<leader>e";
 | 
			
		||||
      action = "<cmd>Neotree<cr>";
 | 
			
		||||
      options.desc = "focus_neotree";
 | 
			
		||||
    }
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										16
									
								
								config/plugins/utils/oil.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								config/plugins/utils/oil.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,16 @@
 | 
			
		|||
{ ... }: {
 | 
			
		||||
  plugins.oil = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  keymaps = [
 | 
			
		||||
    {
 | 
			
		||||
      mode = "n";
 | 
			
		||||
      key = "-";
 | 
			
		||||
      action = "<cmd>Oil<cr>";
 | 
			
		||||
      options = {
 | 
			
		||||
        desc = "Open parent directory";
 | 
			
		||||
      };
 | 
			
		||||
    }
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue