Added Chezmoi config dotfiles

This commit is contained in:
2024-08-25 11:28:11 +02:00
parent 7cb6bbef83
commit b444bfbe60
4 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,6 @@
-- Run `chezmoi apply` every time I use `chezmoi edit`
-- https://www.chezmoi.io/user-guide/tools/editor/#use-chezmoi-with-vim
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = vim.fn.expand("~") .. "/.local/share/chezmoi/*",
command = 'silent ! chezmoi apply --exclude=scripts --source-path "%"',
})