~garritfra/dotfiles

d39169c7a63979ca3354193f18a3c069ec9b2c1b — Garrit Franke 11 months ago 0cc3334
feat(vim): reload file when changed on disk
1 files changed, 5 insertions(+), 0 deletions(-)

M .config/nvim/init.vim
M .config/nvim/init.vim => .config/nvim/init.vim +5 -0
@@ 70,6 70,11 @@ set laststatus=2
set noshowmode
set nohlsearch

" Reload changes from disk whenever the file changed
" https://stackoverflow.com/a/41012424/9046809
set autoread
autocmd FocusGained * checktime


" Fix for smart indent edge-case
" https://vi.stackexchange.com/a/22924