[NeoVim] Small changes

This commit is contained in:
2022-08-30 17:48:42 +02:00
committed by Pierre Jeanjean
parent 65b26cb14d
commit 6d9b419de7
5 changed files with 20 additions and 4 deletions

View File

@@ -1,4 +1,15 @@
(fn setup [module args]
`((. (require ,module) :setup) ,args))
{: setup}
(fn packer [config ...]
"syntactic sugar over packer's startup function."
(local packer `(require :packer))
`((. ,packer :startup)
{1 (lambda [(unquote (sym :use))]
(use :wbthomason/packer.nvim)
(do ,...)
(if (= true _G.packer_bootstrap)
((. ,packer :sync))))
:config ,config}))
{: setup : packer}