fix(extras): chezmoi edit

This commit is contained in:
Feliche-Demian Netliukh 2024-03-28 11:56:47 +00:00
parent e72a645ea7
commit af54206a80

View file

@ -39,8 +39,6 @@ return {
}, },
}, },
config = function(_, opts) config = function(_, opts)
require("chezmoi").setup(opts)
-- run chezmoi edit on file enter -- run chezmoi edit on file enter
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" }, pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
@ -48,6 +46,8 @@ return {
vim.schedule(require("chezmoi.commands.__edit").watch) vim.schedule(require("chezmoi.commands.__edit").watch)
end, end,
}) })
require("chezmoi").setup(opts)
end, end,
}, },
{ {