更多分享内容可访问我的个人博客
coc-explorer
coc-explorer 是一个 coc 插件。运行于 coc.nvim 提供的插件平台上。相比于nerdtree,不说性能问题,直观上就将提供更多的文件信息以及更流畅的体验。同时也可以配置icons。
关于coc-explorer的效果图及具体配置,请见其github主页。
嫌麻烦的话,直接CocInstall coc-explorer
。再设置一下快捷键等就可以直接使用了。以下附上我的配置。
" coc-explorer
nnoremap <leader>p :CocCommand explorer<CR>
let which_key_map2.p ='file tree'
function! s:coc_list_current_dir(args)
let node_info = CocAction('runCommand', 'explorer.getNodeInfo', 0)
execute 'cd ' . fnamemodify(node_info['fullpath'], ':h')
execute 'CocList ' . a:args
endfunction
function