From 5e858db56ee422ae5e8e786676afdd55609e9f65 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 9 Nov 2023 13:14:25 +0100 Subject: nvim: Fix auto-reverting *again* --- .config/nvim/lua/mango/set.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.config/nvim/lua') 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, }) -- cgit v1.2.3