From 4086148b38218aafab71c8db5a737a92c2135150 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Wed, 13 Oct 2021 08:05:33 +0200 Subject: [PATCH] Check file time after entering a buf --- lua/autocommands.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/autocommands.lua b/lua/autocommands.lua index 50f7ee5..0386138 100644 --- a/lua/autocommands.lua +++ b/lua/autocommands.lua @@ -32,6 +32,9 @@ local autocmds = { {'BufRead,BufNewFile', 'Jenkinsfile*', 'set filetype=groovy'}; {'BufRead,BufNewFile', '*.manifest', 'set filetype=xml'}; {'BufRead,BufNewFile', 'SConstruct,SConscript', 'set filetype=python'}; + }; + file_changed = { + {'BufEnter,FocusGained', '*', 'checktime'}; } }