diff --git a/nvim/config--nvim--init.vim.symlink b/nvim/config--nvim--init.vim.symlink index 8df4c87104..81bc9c7fbf 100644 --- a/nvim/config--nvim--init.vim.symlink +++ b/nvim/config--nvim--init.vim.symlink @@ -92,6 +92,14 @@ endif set completeopt=menu,menuone,noselect set shortmess+=c + +" Ensure that out-of-date disk images are detected when attempting changes, +" and not when trying to write changes. +augroup checkbeforewrite + autocmd! + autocmd InsertEnter * checktime +augroup end + "}}} "{{{ plugins