Added Chezmoi config dotfiles
This commit is contained in:
6
home/private_dot_config/nvim/lua/autocmd.lua
Normal file
6
home/private_dot_config/nvim/lua/autocmd.lua
Normal 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 "%"',
|
||||
})
|
Reference in New Issue
Block a user