mirror of
https://github.com/neovim/neovim.git
synced 2026-08-19 02:24:46 -05:00
13 lines
440 B
Lua
13 lines
440 B
Lua
-- 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()
|