Feature: add option for user keybindings

This commit is contained in:
kiyan42
2020-04-03 12:19:41 +02:00
parent c003626dee
commit ff860ecb49
5 changed files with 56 additions and 9 deletions

View File

@@ -109,6 +109,22 @@ INFORMATIONS *nvim-tree-info*
- Double left click acts like '<CR>'
- Double right click acts like '.'
|g:lua_tree_bindings| *g:lua_tree_bindings*
you can change default keybindings by defining this variable.
default keybindings will be applied to undefined keys.
>
let g:lua_tree_bindings = {
\ edit: '<cr>',
\ edit_vsplit: '<c-v>',
\ edit_split: '<c-x>',
\ edit_tab: '<c-t>',
\ cd: '.',
\ create: 'a',
\ remove: 'd',
\ rename: 'r'
\ }
|Features| *nvim-tree-features*
File icons with vim-devicons.

View File

@@ -3,6 +3,7 @@
:LuaTreeToggle nvim-tree-lua.txt /*:LuaTreeToggle*
g:lua_tree_auto_close nvim-tree-lua.txt /*g:lua_tree_auto_close*
g:lua_tree_auto_open nvim-tree-lua.txt /*g:lua_tree_auto_open*
g:lua_tree_bindings nvim-tree-lua.txt /*g:lua_tree_bindings*
g:lua_tree_follow nvim-tree-lua.txt /*g:lua_tree_follow*
g:lua_tree_ignore nvim-tree-lua.txt /*g:lua_tree_ignore*
g:lua_tree_show_icons nvim-tree-lua.txt /*g:lua_tree_show_icons*