aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-12 19:54:49 +0300
committereug-vs <eug-vs@keemail.me>2021-03-12 19:54:49 +0300
commitd01eb5de14bb1ee775ce3875c3c664e39e728ba8 (patch)
tree87970f1121dcd00aac5ee5a305876a997782abee
parent534ce2c74d496a39b1c8624ce9f556c04fb331c8 (diff)
downloaddotfiles-d01eb5de14bb1ee775ce3875c3c664e39e728ba8.tar.gz
feat(vim): automatically refresh Defx
-rw-r--r--.vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index c214070..8f62762 100644
--- a/.vimrc
+++ b/.vimrc
@@ -51,6 +51,7 @@ nnoremap <c-l> <C-w>l
nnoremap <silent> <F3> :Defx<CR>
autocmd FileType defx call s:defx_my_settings()
autocmd BufEnter * if(winnr("$") == 1 && &ft == 'defx') | q | endif
+autocmd BufWritePost * call defx#redraw()
function! SmartTabEdit(context) abort
tabnew