Skip to content

Commit

Permalink
README.md: fix autowrite example
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Praful authored and glacambre committed Jun 26, 2024
1 parent e412ab2 commit 992e576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 992e576

Please sign in to comment.