chore: move chezmoi autocmd to the plugin file

This commit is contained in:
Mariano Z. 2024-12-26 10:53:59 -03:00
parent b265dacc53
commit 72f903d231
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
3 changed files with 14 additions and 14 deletions

View file

@ -39,13 +39,6 @@ vim.api.nvim_create_autocmd("BufWritePre", {
command = [[%s/\s\+$//e]],
})
-- Auto-apply chezmoi changes
vim.api.nvim_create_autocmd("BufWritePost", {
group = MZuninoGroup,
pattern = "~/.local/share/chezmoi/*",
command = [[silent! !chezmoi apply --source-path "%"]],
})
-- Bigfile detection
vim.filetype.add({
pattern = {