nix/home/file/nvim/module/config/Autoread.lua

6 lines
186 B
Lua
Raw Permalink Normal View History

2024-12-18 13:45:27 +03:00
vim.o.autoread = true
vim.api.nvim_create_autocmd({ "BufEnter", "CursorHold", "CursorHoldI", "FocusGained" }, {
command = "if mode() != 'c' | checktime | endif",
pattern = { "*" },
})