diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-09 13:14:25 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-09 13:14:25 +0100 |
commit | 5e858db56ee422ae5e8e786676afdd55609e9f65 (patch) | |
tree | 8f1f76e785ab63af2fd39484c4614e33ae084990 /.config | |
parent | de9c462c436a3ce2d1bd4a406d3f0bf3700bd650 (diff) |
nvim: Fix auto-reverting *again*
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, }) |