From 912073a2c24f8342b34ccc29ea3480d887b99be5 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 11 Apr 2022 00:01:55 +0200 Subject: Revert "fix(bootstrap): mv autocmd" This reverts commit f3f910938dfc032b7e39412aa09deac35da1984e. --- lua/bootstrap.lua | 8 -------- lua/config/packer.lua | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lua/bootstrap.lua b/lua/bootstrap.lua index fbccc3d..ea8f95b 100644 --- a/lua/bootstrap.lua +++ b/lua/bootstrap.lua @@ -23,14 +23,6 @@ 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 diff --git a/lua/config/packer.lua b/lua/config/packer.lua index 10d17da..9302149 100644 --- a/lua/config/packer.lua +++ b/lua/config/packer.lua @@ -3,6 +3,14 @@ if not status_ok then return end +-- 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 +]] + -- Have packer use a popup window packer.init { display = { -- cgit v1.2.3-70-g09d2