summaryrefslogtreecommitdiff
path: root/lua/config/packer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/packer.lua')
-rw-r--r--lua/config/packer.lua8
1 files changed, 8 insertions, 0 deletions
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 <afile> | PackerSync
+ augroup end
+]]
+
-- Have packer use a popup window
packer.init {
display = {