summaryrefslogtreecommitdiff
path: root/fnl/config/autocmd.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-16 01:40:16 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-16 01:40:16 +0200
commit6cb31718df762c6ebf764986074f08b19d6f82f8 (patch)
tree4bc60c9d94de082914ea9ab2d488114caff4edd4 /fnl/config/autocmd.fnl
parent68c0f6bab06ea587b9b258d1ad3b0c9870bc163f (diff)
Refactor loading of plugins with packer
Diffstat (limited to 'fnl/config/autocmd.fnl')
-rw-r--r--fnl/config/autocmd.fnl10
1 files changed, 9 insertions, 1 deletions
diff --git a/fnl/config/autocmd.fnl b/fnl/config/autocmd.fnl
index 017792f..24adcad 100644
--- a/fnl/config/autocmd.fnl
+++ b/fnl/config/autocmd.fnl
@@ -1,5 +1,8 @@
;; Autocommands for nvim.
-(module config.autocmd {autoload {nvim aniseed.nvim a aniseed.core : util}})
+(module config.autocmd {autoload {nvim aniseed.nvim
+ env aniseed.env
+ a aniseed.core
+ :util :config.util}})
(defn create-autocmd [event opts] (nvim.create_autocmd event opts))
@@ -28,3 +31,8 @@
:command "setlocal spell"})
(create-autocmd :VimResized {:command "tabdo wincmd ="})
+
+(create-autocmd :BufWritePost
+ {:pattern :*.fnl
+ :callback (lambda []
+ (env.init nvim.g.aniseed#env))})