From 55e022631c16fbcda4cd7d2b2785eb30790a9649 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 19 Feb 2022 19:10:16 +0900 Subject: feat(macro)!: use more standard name for autocmd/groups --- fnl/nvrc/macro/event.fnl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fnl/nvrc/macro') 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!} -- cgit 1.4.1