From f3f910938dfc032b7e39412aa09deac35da1984e Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 10 Apr 2022 23:59:41 +0200 Subject: fix(bootstrap): mv autocmd --- lua/bootstrap.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lua/bootstrap.lua') diff --git a/lua/bootstrap.lua b/lua/bootstrap.lua index ea8f95b..fbccc3d 100644 --- a/lua/bootstrap.lua +++ b/lua/bootstrap.lua @@ -23,6 +23,14 @@ end ensure("wbthomason", "packer.nvim") ensure("lewis6991", "impatient.nvim") +-- Autocommand that reloads neovim whenever you save the plugins.lua file +vim.cmd [[ + augroup packer_user_config + autocmd! + autocmd BufWritePost plugins.lua source | PackerSync + augroup end +]] + -- Enable faster loading with impatient require "config.impatient" return PACKER_BOOTSTRAP -- cgit v1.2.3-70-g09d2