Add mappings for jumping to previous or next git item.

This commit is contained in:
Kristijan Husak
2020-07-22 11:50:18 +02:00
parent 7743d90504
commit f1b04965de
5 changed files with 50 additions and 12 deletions

View File

@@ -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*