aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/autocommands.vim6
-rw-r--r--lua/plugins.lua7
2 files changed, 6 insertions, 7 deletions
diff --git a/core/autocommands.vim b/core/autocommands.vim
index 6f25e79..396e7b0 100644
--- a/core/autocommands.vim
+++ b/core/autocommands.vim
@@ -97,4 +97,10 @@ augroup git_repo_check
autocmd!
autocmd VimEnter,DirChanged * call utils#Inside_git_repo()
augroup END
+
+" Auto-generate packer_compiled.lua file
+augroup packer_auto_compile
+ autocmd!
+ autocmd BufWritePost */nvim/lua/plugins.lua source <afile> | PackerCompile
+augroup END
"}
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 437754e..f602883 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -288,10 +288,3 @@ require('packer').startup(
}
}
})
-
-vim.cmd([[
- augroup packer_auto_compile
- autocmd!
- autocmd BufWritePost */nvim/lua/plugins.lua source <afile> | PackerCompile
- augroup END
-]])