From 83a7f3505a441f1c152229d50a3d6011951a82fc Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 16 Apr 2026 14:55:11 +0200 Subject: Update --- fnl/settings/autocmds.fnl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fnl/settings/autocmds.fnl') diff --git a/fnl/settings/autocmds.fnl b/fnl/settings/autocmds.fnl index b2a065c..9b5eac5 100644 --- a/fnl/settings/autocmds.fnl +++ b/fnl/settings/autocmds.fnl @@ -12,7 +12,11 @@ [:FileType {:pattern [:gitcommit :markdown] :command "setlocal wrap"}] [:VimResized {:command "tabdo wincmd ="}] - [[:FocusGained :BufEnter] {:command :checktime}] + [[:FocusGained :BufEnter :CursorHold :CursorHoldI] + {:pattern "*" + :callback (fn [] + (when (= (vim.fn.mode) :n) + (vim.cmd :checktime)))}] [[:InsertLeave :WinEnter] {:callback (λ [] (let [cursorline (require :settings.cursorline)] -- cgit v1.2.3-70-g09d2