comparison .chezmoitemplates/config.vim @ 688:6e98364a5a28

chore: convert chezmoi autocmds to lua
author zegervdv <zegervdv@me.com>
date Wed, 05 Oct 2022 08:56:58 +0200
parents 0bea9fd463b5
children
comparison
equal deleted inserted replaced
687:6aabd0b8d766 688:6e98364a5a28
125 " Plugin settings 125 " Plugin settings
126 126
127 " 127 "
128 " Vinegar/NetRW 128 " Vinegar/NetRW
129 autocmd FileType netrw setl bufhidden=delete 129 autocmd FileType netrw setl bufhidden=delete
130 "
131 augroup Chezmoi
132 autocmd!
133 autocmd BufWritePost ~/.local/share/chezmoi/* silent !chezmoi apply --source-path %
134 autocmd BufWritePost ~/.local/share/chezmoi/.chezmoitemplates/init.lua silent !chezmoi apply --source-path ~/.local/share/chezmoi/dot_config/nvim/init.lua.tmpl
135 autocmd BufWritePost ~/.local/share/chezmoi/.chezmoitemplates/config.vim silent !chezmoi apply --source-path ~/.local/share/chezmoi/dot_config/nvim/plugin/config.vim.tmpl
136 autocmd BufWritePost ~/.local/share/chezmoi/dot_config/nvim/init.lua source <afile> | PackerCompile
137 augroup END