summaryrefslogtreecommitdiff
path: root/fnl/settings
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-05-20 11:26:15 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-05-20 11:26:15 +0200
commitf43d3dc687cf63483b65c214a77d235964f295fd (patch)
tree74c2f062e3086f3c482610fab1dffce727cfcdaf /fnl/settings
parentf42a2f1de4db7db44d06a3bfa27ee1c51e2877d9 (diff)
Fix auto update of buffer if file changes on disk
Diffstat (limited to 'fnl/settings')
-rw-r--r--fnl/settings/autocmds.fnl3
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 []