summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-09 13:14:25 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-09 13:14:25 +0100
commit5e858db56ee422ae5e8e786676afdd55609e9f65 (patch)
tree8f1f76e785ab63af2fd39484c4614e33ae084990 /.config
parentde9c462c436a3ce2d1bd4a406d3f0bf3700bd650 (diff)
nvim: Fix auto-reverting *again*
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lua/mango/set.lua5
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,
})