diff options
author | amelia squires <[email protected]> | 2025-02-06 18:45:45 -0600 |
---|---|---|
committer | amelia squires <[email protected]> | 2025-02-06 18:45:45 -0600 |
commit | bea349474eddf5b1b4e30e7c2212a1b9503baddf (patch) | |
tree | ead7c3cb149e889b5aa43f32896bad939c0a5c1c /fnl/util.fnl | |
parent | 27b22ec3312f3c123fb64e63a5be819dce6d0470 (diff) |
update settings
Diffstat (limited to 'fnl/util.fnl')
-rw-r--r-- | fnl/util.fnl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fnl/util.fnl b/fnl/util.fnl index c372393..e72dc42 100644 --- a/fnl/util.fnl +++ b/fnl/util.fnl @@ -13,4 +13,11 @@ (when (~= req nil) ((. (M.require! name) :setup) (or ?config {}))))) +(tset M :after-setup (lambda [fun] + (if (= vim.v.vim_did_enter 1) + (fun) + (vim.api.nvim_create_autocmd "VimEnter" { + :pattern :* + :callback fun})))) + M |