1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 12:50:04 +08:00

fix(nerdtree): Fix . key binding in nerdtree

Within filetree buffer, the `.` key is used to toggle hidden files
This commit is contained in:
Shidong Wang 2021-09-20 22:45:49 +08:00
parent 534c2bf815
commit 3354f6e6a7

View File

@ -29,6 +29,7 @@ function! s:nerdtreeinit() abort
nnoremap <silent><buffer> h :<C-u>call <SID>nerdtree_h()<CR>
nnoremap <silent><buffer> l :<C-u>call <SID>nerdtree_l()<CR>
nnoremap <silent><buffer> N :<C-u>call NERDTreeAddNode()<CR>
nnoremap <silent><buffer> . :<C-u>call <SID>nerdtree_dot()<CR>
endfunction
function! s:paste_to_file_manager() abort
@ -77,3 +78,7 @@ function! s:nerdtree_l() abort
call g:NERDTreeKeyMap.Invoke('o')
endif
endfunction
function! s:nerdtree_dot() abort
call g:NERDTreeKeyMap.Invoke('I')
endfunction