diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/lua/mango/set.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/nvim/lua/mango/set.lua b/.config/nvim/lua/mango/set.lua index 6912bce..e7a7d21 100644 --- a/.config/nvim/lua/mango/set.lua +++ b/.config/nvim/lua/mango/set.lua @@ -51,8 +51,9 @@ api.nvim_create_autocmd('BufEnter', { }) -- Make buffer auto-reverting work… somehow -api.nvim_create_autocmd('FocusGained', { - command = 'checktime', +g.autoread = true +api.nvim_create_autocmd('CursorHold', { + command = 'checktime | call feedkeys("lh")', group = augroup, }) |