From af54206a802edeb9593715518815290bdb89d033 Mon Sep 17 00:00:00 2001 From: Feliche-Demian Netliukh <51330172+Demianeen@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:56:47 +0000 Subject: [PATCH] fix(extras): chezmoi edit --- lua/lazyvim/plugins/extras/util/chezmoi.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/plugins/extras/util/chezmoi.lua b/lua/lazyvim/plugins/extras/util/chezmoi.lua index a224fcaf..a4b6fcd2 100644 --- a/lua/lazyvim/plugins/extras/util/chezmoi.lua +++ b/lua/lazyvim/plugins/extras/util/chezmoi.lua @@ -39,8 +39,6 @@ return { }, }, config = function(_, opts) - require("chezmoi").setup(opts) - -- run chezmoi edit on file enter vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" }, @@ -48,6 +46,8 @@ return { vim.schedule(require("chezmoi.commands.__edit").watch) end, }) + + require("chezmoi").setup(opts) end, }, {