1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 10:00:27 +01:00

Detect when file was updated outside of neovim

This commit is contained in:
2026-01-24 20:14:27 +01:00
parent 443e7c3652
commit 6ff9e356c3

View File

@@ -19,4 +19,11 @@ vim.opt.wrap = true -- Enable line wrap
vim.opt.spelllang = { "en", "nl" }
-- Enable autoread and set up checking triggers
vim.o.autoread = true
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter" }, {
command = "if mode() != 'c' | checktime | endif",
pattern = "*",
})
-- Colorscheme is set in its plugin file