This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.config/nvim/lua/config/Autoread.lua

6 lines
186 B
Lua
Raw Normal View History

2023-12-04 23:35:20 +03:00
vim.o.autoread = true
vim.api.nvim_create_autocmd({ "BufEnter", "CursorHold", "CursorHoldI", "FocusGained" }, {
2023-12-05 22:06:39 +03:00
command = "if mode() != 'c' | checktime | endif",
pattern = { "*" },
2023-12-04 23:35:20 +03:00
})