File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ function! fern#mapping#node#init(disable_default_mappings) abort
21
21
if ! a: disable_default_mappings
22
22
nmap <buffer> <nowait> <F5> <Plug> (fern-action-reload)
23
23
nmap <buffer> <nowait> <C-m> <Plug> (fern-action-enter)
24
+ nmap <buffer> <nowait> <Return> <Plug> (fern-action-enter)
24
25
nmap <buffer> <nowait> <C-h> <Plug> (fern-action-leave)
26
+ nmap <buffer> <nowait> <Backspace> <Plug> (fern-action-leave)
25
27
nmap <buffer> <nowait> l <Plug> (fern-action-expand)
26
28
nmap <buffer> <nowait> h <Plug> (fern-action-collapse)
27
29
nmap <buffer> <nowait> i <Plug> (fern-action-reveal)
28
- nmap <buffer> <nowait> <Return> <C-m>
29
- nmap <buffer> <nowait> <Backspace> <C-h>
30
30
endif
31
31
endfunction
32
32
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ function! fern#mapping#open#init(disable_default_mappings) abort
45
45
46
46
if ! a: disable_default_mappings
47
47
nmap <buffer> <nowait> <C-m> <Plug> (fern-action-open-or-enter)
48
+ nmap <buffer> <nowait> <Return> <Plug> (fern-action-open-or-enter)
48
49
nmap <buffer> <nowait> l <Plug> (fern-action-open-or-expand)
49
50
nmap <buffer> <nowait> s <Plug> (fern-action-open:select)
50
51
nmap <buffer> <nowait> e <Plug> (fern-action-open)
You can’t perform that action at this time.
0 commit comments