Browse Source

feat(vim): reload file when changed on disk

refactor/nvim-lua
Garrit Franke 3 years ago
parent
commit
d39169c7a6
Signed by: garrit
GPG Key ID: 65586C4DDA55EA2C
  1. 5
      .config/nvim/init.vim

5
.config/nvim/init.vim

@ -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

Loading…
Cancel
Save