auto update file/buffer on focus

This commit is contained in:
2026-04-27 08:12:49 +02:00
parent 7e84105a98
commit 0c40342e29
+5
View File
@@ -10,6 +10,11 @@ o.signcolumn = "yes"
o.swapfile = false
o.winborder = "single"
o.termguicolors = true
o.autoread = true
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHoldI" }, {
command = "if mode() != 'c' | checktime | endif",
})
vim.diagnostic.config({
virtual_text = { prefix = "", spacing = 2, source = "if_many" },