Add mappings for jumping to previous or next git item.
This commit is contained in:
@@ -145,6 +145,8 @@ INFORMATIONS *nvim-tree-info*
|
||||
- type 'p' to paste from clipboard. Cut clipboard has precedence over copy
|
||||
(will prompt for confirmation)
|
||||
- type 'd' to delete a file (will prompt for confirmation)
|
||||
- type ']c' to go to next git item
|
||||
- type '[c' to go to prev git item
|
||||
|
||||
- if the file is a directory, '<CR>' will open the directory
|
||||
- otherwise it will open the file in the buffer near the tree
|
||||
@@ -166,18 +168,20 @@ 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: '<c-]>',
|
||||
\ preview: '<Tab>',
|
||||
\ create: 'a',
|
||||
\ remove: 'd',
|
||||
\ rename: 'r',
|
||||
\ cut: 'x',
|
||||
\ copy: 'c',
|
||||
\ paste: 'p',
|
||||
\ edit: '<cr>',
|
||||
\ edit_vsplit: '<c-v>',
|
||||
\ edit_split: '<c-x>',
|
||||
\ edit_tab: '<c-t>',
|
||||
\ cd: '<c-]>',
|
||||
\ preview: '<Tab>',
|
||||
\ create: 'a',
|
||||
\ remove: 'd',
|
||||
\ rename: 'r',
|
||||
\ cut: 'x',
|
||||
\ copy: 'c',
|
||||
\ paste: 'p',
|
||||
\ prev_git_item: '[c',
|
||||
\ next_git_item: ']c',
|
||||
\ }
|
||||
|
||||
|Features| *nvim-tree-features*
|
||||
|
||||
Reference in New Issue
Block a user