From 4613860a32f14c92b0076a630e13c327292fe1de Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 5 Feb 2021 15:55:57 -0500 Subject: auto open with coc explorer --- plug-config/coc/coc.vim | 6 ++++++ 1 file changed, 6 insertions(+) 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 = '' " Use for both expand and jump (make expand higher priority.) imap (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 -- cgit v1.2.3