about summary refs log tree commit diff
path: root/fnl/nvrc/macro
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-19 19:10:16 +0900
committersefidel <contact@sefidel.net>2022-02-19 19:10:16 +0900
commit55e022631c16fbcda4cd7d2b2785eb30790a9649 (patch)
tree073003645f5df4879de1285451e1d0bdc098bde3 /fnl/nvrc/macro
parent98f9d3833df8346bbb55913ff479a6a0f6adbf0a (diff)
downloadnvimrc-55e022631c16fbcda4cd7d2b2785eb30790a9649.tar.gz
nvimrc-55e022631c16fbcda4cd7d2b2785eb30790a9649.zip
feat(macro)!: use more standard name for autocmd/groups
Diffstat (limited to 'fnl/nvrc/macro')
-rw-r--r--fnl/nvrc/macro/event.fnl8
1 files changed, 4 insertions, 4 deletions
diff --git a/fnl/nvrc/macro/event.fnl b/fnl/nvrc/macro/event.fnl
index 3453431..0727969 100644
--- a/fnl/nvrc/macro/event.fnl
+++ b/fnl/nvrc/macro/event.fnl
@@ -15,7 +15,7 @@
   (accumulate [is? false _ v (ipairs xs) :until is?]
     (= v x)))
 
-(lambda au! [name ...]
+(lambda ag! [name ...]
   "Defines an autocommand group using the vim API."
   `(do
      (vim.cmd ,(format "augroup %s" name))
@@ -24,7 +24,7 @@
        ,...)
      (vim.cmd "augroup END")))
 
-(lambda aub! [name ...]
+(lambda agb! [name ...]
   "Defines a buffer-local autocommand group using the vim API."
   `(do
      (vim.cmd ,(format "augroup %s" name))
@@ -33,7 +33,7 @@
        ,...)
      (vim.cmd "augroup END")))
 
-(lambda ac! [events pattern ...]
+(lambda au! [events pattern ...]
   "Defines an autocommand using the vim API."
   (let [events (as-> [$ events] (if (sequence? $) $ [$])
                      (icollect [_ v (ipairs $)]
@@ -60,4 +60,4 @@
                                "autocmd %s %s ++nested %s" "autocmd %s %s %s")
                            events pattern command)))))
 
-{: au! : aub! : ac!}
+{: ag! : agb! : au!}