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
2121 if ! a: disable_default_mappings
2222 nmap <buffer> <nowait> <F5> <Plug> (fern-action-reload)
2323 nmap <buffer> <nowait> <C-m> <Plug> (fern-action-enter)
24+ nmap <buffer> <nowait> <Return> <Plug> (fern-action-enter)
2425 nmap <buffer> <nowait> <C-h> <Plug> (fern-action-leave)
26+ nmap <buffer> <nowait> <Backspace> <Plug> (fern-action-leave)
2527 nmap <buffer> <nowait> l <Plug> (fern-action-expand)
2628 nmap <buffer> <nowait> h <Plug> (fern-action-collapse)
2729 nmap <buffer> <nowait> i <Plug> (fern-action-reveal)
28- nmap <buffer> <nowait> <Return> <C-m>
29- nmap <buffer> <nowait> <Backspace> <C-h>
3030 endif
3131endfunction
3232
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ function! fern#mapping#open#init(disable_default_mappings) abort
4545
4646 if ! a: disable_default_mappings
4747 nmap <buffer> <nowait> <C-m> <Plug> (fern-action-open-or-enter)
48+ nmap <buffer> <nowait> <Return> <Plug> (fern-action-open-or-enter)
4849 nmap <buffer> <nowait> l <Plug> (fern-action-open-or-expand)
4950 nmap <buffer> <nowait> s <Plug> (fern-action-open:select)
5051 nmap <buffer> <nowait> e <Plug> (fern-action-open)
You can’t perform that action at this time.
0 commit comments