Add jj/kitty/nvim/opencode/paru/fish/yazi/jjui
This commit is contained in:
19
nvim/files/lua/plugins/chezmoi.lua
Normal file
19
nvim/files/lua/plugins/chezmoi.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user