Closed nabezokodaikon closed 4 years ago
I get an error when I open the file.
No error occurs when opening the file.
plugin version(SHA1): 8db1eb0caf582c0ebeac77ca95f00bb4646f08ef
OS: Mac
neovim/Vim version: NVIM v0.5.0-nightly-125-g3ccdbc570
:checkhealth or :CheckHealth result(neovim only): OK
:checkhealth
:CheckHealth
autocmd FileType defx call s:defx_my_settings() function! s:defx_my_settings() abort nnoremap <silent><buffer><expr> c \ defx#do_action('copy') nnoremap <silent><buffer><expr> m \ defx#do_action('move') nnoremap <silent><buffer><expr> p \ defx#do_action('paste') nnoremap <silent><buffer><expr> o \ defx#do_action('open_or_close_tree') nnoremap <silent><buffer><expr> <CR> \ defx#do_action('open') nnoremap <silent><buffer><expr> <C-n> \ defx#do_action('new_multiple_files') nnoremap <silent><buffer><expr> C \ defx#do_action('toggle_columns', \ 'mark:filename:type:size:time') nnoremap <silent><buffer><expr> D \ defx#do_action('remove') nnoremap <silent><buffer><expr> r \ defx#do_action('rename') nnoremap <silent><buffer><expr> yy \ defx#do_action('yank_path') nnoremap <silent><buffer><expr> . \ defx#do_action('toggle_ignored_files') nnoremap <silent><buffer><expr> l \ defx#do_action('open') nnoremap <silent><buffer><expr> h \ defx#do_action('cd', ['..']) nnoremap <silent><buffer><expr> q \ defx#do_action('quit') nnoremap <silent><buffer><expr> j \ line('.') == line('$') ? 'gg' : 'j' nnoremap <silent><buffer><expr> k \ line('.') == 1 ? 'G' : 'k' nnoremap <silent><buffer><expr> <C-r> \ defx#do_action('redraw') nnoremap <silent><buffer><expr> <C-g> \ defx#do_action('print') nnoremap <silent><buffer><expr> ~ \ defx#do_action('change_vim_cwd') endfunction
$ mkdir issue-defx
$ touch issue-defx/test.md
$ cd issue-defx
nvim
test.md
Thank you. I confirmed that it works normally.
Problems summary
I get an error when I open the file.
Expected
No error occurs when opening the file.
Environment Information
plugin version(SHA1): 8db1eb0caf582c0ebeac77ca95f00bb4646f08ef
OS: Mac
neovim/Vim version: NVIM v0.5.0-nightly-125-g3ccdbc570
:checkhealth
or:CheckHealth
result(neovim only): OKProvide a minimal init.vim/vimrc with less than 50 lines (Required!)
The reproduce ways from neovim/Vim starting (Required!)
$ mkdir issue-defx
$ touch issue-defx/test.md
$ cd issue-defx
nvim
test.md
file.test.md
file.Screen shot (if possible)