diff options
| -rw-r--r-- | .vim/lua/plugins.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index 65b573f..4bb7924 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -41,6 +41,10 @@ end -- }}} -- we change the packer.compile_path below, so we need to require it here... require('packer_compiled') +-- auto-compile on save +augroup { + autocompile = {{ 'BufWritePost', 'plugins.lua', [[ exe 'luafile %:p' | PackerCompile ]] }} +} return require('packer').startup({function() -- disable built-in plugins |