From 992e57666c0d4c301c5a231354b8237d7bae0282 Mon Sep 17 00:00:00 2001 From: praful <220836+Praful@users.noreply.github.com> Date: Wed, 26 Jun 2024 06:45:23 +0200 Subject: [PATCH] README.md: fix autowrite example This was probably broken ever since I converted the example to lua. Thanks a lot to Praful for noticing this, figuring out the solution and sharing it. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 622b53e4..2613c9cb 100644 --- a/README.md +++ b/README.md @@ -281,10 +281,10 @@ vim.api.nvim_create_autocmd({'TextChanged', 'TextChangedI'}, { vim.g.timer_started = true vim.fn.timer_start(10000, function() vim.g.timer_started = false - write + vim.cmd('silent write') end) end -end}) +}) ``` ### Configuring message timeout