nix/module/common/nvim/config/Autoread.lua
2024-03-04 03:04:57 +03:00

6 lines
186 B
Lua

vim.o.autoread = true
vim.api.nvim_create_autocmd({ "BufEnter", "CursorHold", "CursorHoldI", "FocusGained" }, {
command = "if mode() != 'c' | checktime | endif",
pattern = { "*" },
})