From 2d5b9b2b0dae526db74880e6892a18788ad8622c Mon Sep 17 00:00:00 2001 From: odrling Date: Tue, 30 Aug 2022 16:52:20 +0200 Subject: [PATCH] [nvim] packer: set autoremove --- .config/nvim/fnl/macros.fnl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.config/nvim/fnl/macros.fnl b/.config/nvim/fnl/macros.fnl index c84c7ed..f31a27e 100644 --- a/.config/nvim/fnl/macros.fnl +++ b/.config/nvim/fnl/macros.fnl @@ -236,11 +236,12 @@ "syntactic sugar over packer's startup function." (local packer `(require :packer)) `((. ,packer :startup) - (lambda [(unquote (sym :use))] - (use :wbthomason/packer.nvim) - (do ,...) - (if (. _G :packer.nvim_bootstrap) - ((. ,packer :sync)))))) + {1 (lambda [(unquote (sym :use))] + (use :wbthomason/packer.nvim) + (do ,...) + (if (. _G :packer.nvim_bootstrap) + ((. ,packer :sync)))) + :config {:autoremove true}})) (lambda create-func [val])