summaryrefslogtreecommitdiff
path: root/fnl/config/autocmd.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/config/autocmd.fnl')
-rw-r--r--fnl/config/autocmd.fnl9
1 files changed, 8 insertions, 1 deletions
diff --git a/fnl/config/autocmd.fnl b/fnl/config/autocmd.fnl
index 24adcad..4194e66 100644
--- a/fnl/config/autocmd.fnl
+++ b/fnl/config/autocmd.fnl
@@ -2,7 +2,8 @@
(module config.autocmd {autoload {nvim aniseed.nvim
env aniseed.env
a aniseed.core
- :util :config.util}})
+ : packer
+ util config.util}})
(defn create-autocmd [event opts] (nvim.create_autocmd event opts))
@@ -36,3 +37,9 @@
{:pattern :*.fnl
:callback (lambda []
(env.init nvim.g.aniseed#env))})
+
+(create-autocmd :BufWritePost
+ {:pattern :plugins.fnl
+ :callback (lambda []
+ (env.init nvim.g.aniseed#env)
+ (packer.sync))})