diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2026-04-16 14:55:11 +0200 |
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2026-04-16 14:55:11 +0200 |
| commit | 83a7f3505a441f1c152229d50a3d6011951a82fc (patch) | |
| tree | ae2587b570fe975ac630f91d4e21d36680d919f2 /fnl/settings/autocmds.fnl | |
| parent | 9b57b887676d7a86936e67d4a8c0bd1d9775ee62 (diff) | |
Update
Diffstat (limited to 'fnl/settings/autocmds.fnl')
| -rw-r--r-- | fnl/settings/autocmds.fnl | 6 |
1 files changed, 5 insertions, 1 deletions
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)] |