diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-10 23:59:41 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-10 23:59:41 +0200 |
commit | f3f910938dfc032b7e39412aa09deac35da1984e (patch) | |
tree | 0d48048b92040a88c13273bba1223e965383c9a0 | |
parent | 51992aa7a83a5455040b177c33f17c1e41fab4f9 (diff) |
fix(bootstrap): mv autocmd
-rw-r--r-- | lua/bootstrap.lua | 8 | ||||
-rw-r--r-- | lua/config/packer.lua | 8 |
2 files changed, 8 insertions, 8 deletions
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 <afile> | 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 9302149..10d17da 100644 --- a/lua/config/packer.lua +++ b/lua/config/packer.lua @@ -3,14 +3,6 @@ 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 = { |