fixed nvim-tree mappings.
This commit is contained in:
		
							parent
							
								
									ed2b8c723d
								
							
						
					
					
						commit
						626a4cb63a
					
				
					 1 changed files with 37 additions and 37 deletions
				
			
		| 
						 | 
					@ -104,43 +104,43 @@ return require('packer').startup(function(use)
 | 
				
			||||||
		  'kyazdani42/nvim-web-devicons', -- optional, for file icon
 | 
							  'kyazdani42/nvim-web-devicons', -- optional, for file icon
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		config = function() require'nvim-tree'.setup {
 | 
							config = function() require'nvim-tree'.setup {
 | 
				
			||||||
			-- view={mapping={
 | 
								view={mappings={list={
 | 
				
			||||||
			-- 	{ key = {"<CR>", "o", "<2-LeftMouse>"}, action = "edit" },
 | 
									{ key = {"<CR>", "o", "<2-LeftMouse>"}, action = "edit" },
 | 
				
			||||||
			-- 	{ key = "<C-e>", action = "edit_in_place" },
 | 
									{ key = "<C-e>", action = "edit_in_place" },
 | 
				
			||||||
			-- 	{ key = {"O"}, action = "edit_no_picker" },
 | 
									{ key = {"O"}, action = "edit_no_picker" },
 | 
				
			||||||
			-- 	{ key = {"<2-RightMouse>", "<C-]>"},    action = "cd" },
 | 
									{ key = {"<2-RightMouse>", "<C-]>"},    action = "cd" },
 | 
				
			||||||
			-- 	{ key = "<C-v>", action = "vsplit" },
 | 
									{ key = "<C-v>", action = "vsplit" },
 | 
				
			||||||
			-- 	{ key = "<C-x>", action = "split" },
 | 
									{ key = "<C-x>", action = "split" },
 | 
				
			||||||
			-- 	{ key = "<C-t>", action = "tabnew" },
 | 
									{ key = "<C-t>", action = "tabnew" },
 | 
				
			||||||
			-- 	{ key = "<", action = "prev_sibling" },
 | 
									{ key = "<", action = "prev_sibling" },
 | 
				
			||||||
			-- 	{ key = ">", action = "next_sibling" },
 | 
									{ key = ">", action = "next_sibling" },
 | 
				
			||||||
			-- 	{ key = "P", action = "parent_node" },
 | 
									{ key = "P", action = "parent_node" },
 | 
				
			||||||
			-- 	{ key = "<BS>", action = "close_node" },
 | 
									{ key = "<BS>", action = "close_node" },
 | 
				
			||||||
			-- 	{ key = "<Tab>", action = "preview" },
 | 
									{ key = "<Tab>", action = "preview" },
 | 
				
			||||||
			-- 	{ key = "K", action = "first_sibling" },
 | 
									{ key = "K", action = "first_sibling" },
 | 
				
			||||||
			-- 	{ key = "J", action = "last_sibling" },
 | 
									{ key = "J", action = "last_sibling" },
 | 
				
			||||||
			-- 	{ key = "I", action = "toggle_ignored" },
 | 
									{ key = "I", action = "toggle_ignored" },
 | 
				
			||||||
			-- 	{ key = "H", action = "toggle_dotfiles" },
 | 
									{ key = "H", action = "toggle_dotfiles" },
 | 
				
			||||||
			-- 	{ key = "R", action = "refresh" },
 | 
									{ key = "R", action = "refresh" },
 | 
				
			||||||
			-- 	{ key = "a", action = "create" },
 | 
									{ key = "a", action = "create" },
 | 
				
			||||||
			-- 	{ key = "d", action = "remove" },
 | 
									{ key = "d", action = "remove" },
 | 
				
			||||||
			-- 	{ key = "D", action = "trash" },
 | 
									{ key = "D", action = "trash" },
 | 
				
			||||||
			-- 	{ key = "r", action = "rename" },
 | 
									{ key = "r", action = "rename" },
 | 
				
			||||||
			-- 	{ key = "<C-r>", action = "full_rename" },
 | 
									{ key = "<C-r>", action = "full_rename" },
 | 
				
			||||||
			-- 	{ key = "x", action = "cut" },
 | 
									{ key = "x", action = "cut" },
 | 
				
			||||||
			-- 	{ key = "c", action = "copy" },
 | 
									{ key = "c", action = "copy" },
 | 
				
			||||||
			-- 	{ key = "p", action = "paste" },
 | 
									{ key = "p", action = "paste" },
 | 
				
			||||||
			-- 	{ key = "y", action = "copy_name" },
 | 
									{ key = "y", action = "copy_name" },
 | 
				
			||||||
			-- 	{ key = "Y", action = "copy_path" },
 | 
									{ key = "Y", action = "copy_path" },
 | 
				
			||||||
			-- 	{ key = "gy", action = "copy_absolute_path" },
 | 
									{ key = "gy", action = "copy_absolute_path" },
 | 
				
			||||||
			-- 	{ key = "[c", action = "prev_git_item" },
 | 
									{ key = "[c", action = "prev_git_item" },
 | 
				
			||||||
			-- 	{ key = "]c", action = "next_git_item" },
 | 
									{ key = "]c", action = "next_git_item" },
 | 
				
			||||||
			-- 	{ key = "-", action = "dir_up" },
 | 
									{ key = "-", action = "dir_up" },
 | 
				
			||||||
			-- 	{ key = "s", action = "system_open" },
 | 
									{ key = "s", action = "system_open" },
 | 
				
			||||||
			-- 	{ key = "q", action = "close" },
 | 
									{ key = "q", action = "close" },
 | 
				
			||||||
			-- 	{ key = "g?", action = "toggle_help" },
 | 
									{ key = "g?", action = "toggle_help" },
 | 
				
			||||||
			-- 	{ key = "W", action = "collapse_all" }
 | 
									{ key = "W", action = "collapse_all" }
 | 
				
			||||||
			-- }}
 | 
								}}}
 | 
				
			||||||
		} end
 | 
							} end
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue