robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Oleksandr Chekhovskyifeat(autoread): use filewatchers for OS-driven change detection #37971400f247397

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