From 1d33a817517eb6cd3844b045def38eecb253f3c5 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 13 Jun 2026 01:40:05 +0200 Subject: test(autoread): cleanup - Merged into the main "reloads on external change" test. - Reduce duplication. - Wall-clock down from ~4.4s to ~1.4s (dropped 3s debounce test). --- runtime/lua/vim/_meta/options.gen.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/_meta/options.gen.lua b/runtime/lua/vim/_meta/options.gen.lua index 5bc33d2ede..2b8c298972 100644 --- a/runtime/lua/vim/_meta/options.gen.lua +++ b/runtime/lua/vim/_meta/options.gen.lua @@ -168,12 +168,13 @@ vim.o.ai = vim.o.autoindent vim.bo.autoindent = vim.o.autoindent vim.bo.ai = vim.bo.autoindent ---- When a file has been detected to have been changed outside of Vim and ---- it has not been changed inside of Vim, automatically read it again. ---- When the file has been deleted this is not done, so you have the text ---- from before it was deleted. When it appears again then it is read. ---- Nvim uses file system watchers to detect changes in real-time for all ---- loaded buffers; see `timestamp` for details. +--- When a file was changed outside of Nvim, automatically read it again. +--- Skipped if the file was deleted, so you have the text from before it +--- was deleted. If the file appears again then it is read. `timestamp` +--- +--- This is partially driven by OS filewatcher events `uv_fs_event_t`, so +--- even the current buffer may be updated. +--- --- If this option has a local value, use this command to switch back to --- using the global value: --- -- cgit