diff .chezmoitemplates/config.vim @ 472:d2b877b4ef8b

Automatically apply changes to templatefiles
author zegervdv <zegervdv@me.com>
date Sun, 03 Oct 2021 10:23:25 +0200
parents 1d2e33dfe0c6
children 5b625df6edf2
line wrap: on
line diff
--- a/.chezmoitemplates/config.vim	Sun Oct 03 10:22:55 2021 +0200
+++ b/.chezmoitemplates/config.vim	Sun Oct 03 10:23:25 2021 +0200
@@ -771,5 +771,7 @@
 augroup Chezmoi
   autocmd!
   autocmd BufWritePost ~/.local/share/chezmoi/* silent !chezmoi apply --source-path %
+  autocmd BufWritePost ~/.local/share/chezmoi/.chezmoitemplates/init.lua silent !chezmoi apply --source-path ~/.local/share/chezmoi/dot_config/nvim/init.lua.tmpl
+  autocmd BufWritePost ~/.local/share/chezmoi/.chezmoitemplates/config.vim silent !chezmoi apply --source-path ~/.local/share/chezmoi/dot_config/nvim/plugin/config.vim.tmpl
   autocmd BufWritePost ~/.local/share/chezmoi/dot_config/nvim/init.lua source <afile> | PackerCompile
 augroup END