diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-05-20 11:26:15 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-05-20 11:26:15 +0200 |
commit | f43d3dc687cf63483b65c214a77d235964f295fd (patch) | |
tree | 74c2f062e3086f3c482610fab1dffce727cfcdaf /fnl | |
parent | f42a2f1de4db7db44d06a3bfa27ee1c51e2877d9 (diff) |
Fix auto update of buffer if file changes on disk
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/settings/autocmds.fnl | 3 |
1 files changed, 2 insertions, 1 deletions
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 [] |