20 lines
507 B
Lua
20 lines
507 B
Lua
return {
|
|
'xvzc/chezmoi.nvim',
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
config = function()
|
|
require("chezmoi").setup {
|
|
-- e.g. ~/.local/share/chezmoi/*
|
|
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
|
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
|
|
callback = function(ev)
|
|
local bufnr = ev.buf
|
|
local edit_watch = function()
|
|
require("chezmoi.commands.__edit").watch(bufnr)
|
|
end
|
|
vim.schedule(edit_watch)
|
|
end,
|
|
})
|
|
}
|
|
end
|
|
}
|