blob: 5105a6ab0ced8abbc91e00eeb2b50aad3b3dbf05 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
-- File-watcher backing for the 'autoread' option.
-- Lives here (not in vim/_core/defaults.lua) so that `-u NONE` / `--noplugin`
-- skip it: the BufReadPost/BufWritePost autocmds it registers would otherwise
-- show up in every test that inspects the autocmd list. Matches the pattern
-- used by runtime/plugin/matchparen.lua.
if vim.g.loaded_autoread ~= nil then
return
end
vim.g.loaded_autoread = 1
require('nvim.autoread').enable()
|