From 30366ba21ddfcae72ea63f000f764d5c0562aebe Mon Sep 17 00:00:00 2001 From: Feliche-Demian Netliukh Date: Tue, 11 Jun 2024 16:09:45 +0100 Subject: [PATCH] Update lua/lazyvim/plugins/extras/util/chezmoi.lua Co-authored-by: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com> --- lua/lazyvim/plugins/extras/util/chezmoi.lua | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/lua/lazyvim/plugins/extras/util/chezmoi.lua b/lua/lazyvim/plugins/extras/util/chezmoi.lua index 97fd45b0..c2c3377f 100644 --- a/lua/lazyvim/plugins/extras/util/chezmoi.lua +++ b/lua/lazyvim/plugins/extras/util/chezmoi.lua @@ -3,15 +3,10 @@ return { { -- highlighting for chezmoi files template files "alker0/chezmoi.vim", - opts = { - use_tmp_buffer = true, - source_dir_path = os.getenv("HOME") .. "/.local/share/chezmoi", - }, - config = function(_, opts) - for key, value in pairs(opts) do - vim.g["chezmoi#" .. key] = value - end - end, + init = function() + vim.g.chezmoi#use_tmp_buffer = 1 + vim.g.chezmoi#source_dir_path = os.getenv("HOME") .. "/.local/share/chezmoi", + end, }, { "xvzc/chezmoi.nvim",