mirror of
https://github.com/preservim/nerdtree.git
synced 2025-01-31 11:08:28 +08:00
make the git menu use the new NERDTreeAddSubmenu() call
This commit is contained in:
parent
1080246af9
commit
f2a9e9a360
|
@ -22,11 +22,10 @@ endif
|
|||
let g:loaded_nerdtree_git_menu = 1
|
||||
|
||||
call NERDTreeAddMenuSeparator({'isActiveCallback': 'NERDTreeGitMenuEnabled'})
|
||||
let s:menu = NERDTreeAddMenuItem({
|
||||
let s:menu = NERDTreeAddSubmenu({
|
||||
\ 'text': '(g)it menu',
|
||||
\ 'shortcut': 'g',
|
||||
\ 'isActiveCallback': 'NERDTreeGitMenuEnabled',
|
||||
\ 'callback': 'NERDTreeGitMenu' })
|
||||
\ 'isActiveCallback': 'NERDTreeGitMenuEnabled' })
|
||||
|
||||
call NERDTreeAddMenuItem({
|
||||
\ 'text': 'git (a)dd',
|
||||
|
|
Loading…
Reference in New Issue
Block a user