my dotfiles for arch
1return {
2 'xvzc/chezmoi.nvim',
3 dependencies = { 'nvim-lua/plenary.nvim' },
4 config = function()
5 require("chezmoi").setup {
6 -- e.g. ~/.local/share/chezmoi/*
7 vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
8 pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
9 callback = function(ev)
10 local bufnr = ev.buf
11 local edit_watch = function()
12 require("chezmoi.commands.__edit").watch(bufnr)
13 end
14 vim.schedule(edit_watch)
15 end,
16 })
17 }
18 end
19}