mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 14:00:05 +08:00
fix(nerdtree): fix key binding h
in filetree
This commit is contained in:
parent
ba588581ee
commit
fd96c4ea1f
@ -62,15 +62,13 @@ function! s:copy_to_system_clipboard() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:nerdtree_h() abort
|
function! s:nerdtree_h() abort
|
||||||
" let path = g:NERDTreeFileNode.GetSelected().path.str()
|
if g:NERDTree.ForCurrentTab().getRoot().path.str()
|
||||||
" if isdirectory(path)
|
\ ==# g:NERDTreeFileNode.GetSelected().path.getParent().str()
|
||||||
" let path = s:FILE.unify_path(path, ':p:h:h')
|
silent! exe 'NERDTree' g:NERDTreeFileNode.GetSelected().path.getParent().getParent().str()
|
||||||
" else
|
else
|
||||||
" let path = s:FILE.unify_path(path, ':p:h')
|
call g:NERDTreeKeyMap.Invoke('p')
|
||||||
" endif
|
call g:NERDTreeKeyMap.Invoke('o')
|
||||||
" exe 'NERDTreeFind ' . path
|
endif
|
||||||
call g:NERDTreeKeyMap.Invoke('p')
|
|
||||||
call g:NERDTreeKeyMap.Invoke('o')
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:nerdtree_l() abort
|
function! s:nerdtree_l() abort
|
||||||
|
Loading…
Reference in New Issue
Block a user