diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-12-18 23:00:39 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-12-18 23:00:39 +0900 |
| commit | 4b0d3648f1e8599bbdeba64214a6a65a219ec4e1 (patch) | |
| tree | 5017db4417dfc85d4bdf413cccd3b2e6d06ca29c | |
| parent | 0eb76c55d50787e6ea2e7e4c3ea20bca0bd9034a (diff) | |
| download | dotfiles-4b0d3648f1e8599bbdeba64214a6a65a219ec4e1.tar.gz dotfiles-4b0d3648f1e8599bbdeba64214a6a65a219ec4e1.tar.zst dotfiles-4b0d3648f1e8599bbdeba64214a6a65a219ec4e1.zip | |
neovim:packer: notify when PackerCompile is complete
| -rw-r--r-- | .config/nvim/init.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 185ae97..dcf484b 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -1111,5 +1111,11 @@ vim.api.nvim_create_user_command( ) vimrc.autocmd('BufWritePost', { pattern = {'plugins.lua'}, - callback = function() require('plugins').compile() end, + callback = function() + vimrc.autocmd('User', { + pattern = 'PackerCompileDone', + command = 'echo "[packer] Finished compiling lazy-loaders!"' + }) + require('plugins').compile() + end, }) |
