From f43d3dc687cf63483b65c214a77d235964f295fd Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 20 May 2023 11:26:15 +0200 Subject: Fix auto update of buffer if file changes on disk --- fnl/settings/autocmds.fnl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fnl') diff --git a/fnl/settings/autocmds.fnl b/fnl/settings/autocmds.fnl index 0fcc4ea..d32f814 100644 --- a/fnl/settings/autocmds.fnl +++ b/fnl/settings/autocmds.fnl @@ -29,7 +29,8 @@ [:TermOpen {:pattern ["term://*toggleterm#*"] :command "setlocal spell!"}] [:VimResized {:command "tabdo wincmd ="}] - [:FocusGained {:command :checktime}] + [[:FocusGained :BufEnter :CursorHold :CursorHoldI] + {:command :checktime}] [:TermOpen {:pattern "term://*toggleterm#*" :callback (fn [] -- cgit v1.2.3-70-g09d2