diff options
Diffstat (limited to 'fnl/nvrc/macro')
-rw-r--r-- | fnl/nvrc/macro/event.fnl | 8 |
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!} |