mirror of
https://github.com/preservim/nerdtree.git
synced 2025-01-31 10:36:48 +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
|
let g:loaded_nerdtree_git_menu = 1
|
||||||
|
|
||||||
call NERDTreeAddMenuSeparator({'isActiveCallback': 'NERDTreeGitMenuEnabled'})
|
call NERDTreeAddMenuSeparator({'isActiveCallback': 'NERDTreeGitMenuEnabled'})
|
||||||
let s:menu = NERDTreeAddMenuItem({
|
let s:menu = NERDTreeAddSubmenu({
|
||||||
\ 'text': '(g)it menu',
|
\ 'text': '(g)it menu',
|
||||||
\ 'shortcut': 'g',
|
\ 'shortcut': 'g',
|
||||||
\ 'isActiveCallback': 'NERDTreeGitMenuEnabled',
|
\ 'isActiveCallback': 'NERDTreeGitMenuEnabled' })
|
||||||
\ 'callback': 'NERDTreeGitMenu' })
|
|
||||||
|
|
||||||
call NERDTreeAddMenuItem({
|
call NERDTreeAddMenuItem({
|
||||||
\ 'text': 'git (a)dd',
|
\ 'text': 'git (a)dd',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user