diff options
-rw-r--r-- | plug-config/coc/coc.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plug-config/coc/coc.vim b/plug-config/coc/coc.vim index 0b0631ca..f8c9270e 100644 --- a/plug-config/coc/coc.vim +++ b/plug-config/coc/coc.vim @@ -163,3 +163,9 @@ let g:coc_snippet_prev = '<c-k>' " Use <C-j> for both expand and jump (make expand higher priority.) imap <C-j> <Plug>(coc-snippets-expand-jump) + +augroup MyCocExplorer + autocmd! + autocmd VimEnter * sil! au! FileExplorer * + autocmd BufEnter * let d = expand('%') | if isdirectory(d) | silent! bd | exe 'CocCommand explorer ' . d | endif +augroup END |