From 5f92e783e071c61647f1d6f8d69cc2dfdb609ffd Mon Sep 17 00:00:00 2001 From: "Ricardo B. Marliere" Date: Sat, 20 Jul 2024 15:59:15 -0300 Subject: [PATCH] fix: use proper config in confirm_deletion --- lua/telescope/_extensions/git_worktree.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/telescope/_extensions/git_worktree.lua b/lua/telescope/_extensions/git_worktree.lua index d3e2137..74a9deb 100644 --- a/lua/telescope/_extensions/git_worktree.lua +++ b/lua/telescope/_extensions/git_worktree.lua @@ -70,7 +70,8 @@ end -- @param forcing boolean: whether the deletion is forced -- @return boolean: whether the deletion is confirmed local confirm_deletion = function(forcing) - if not git_worktree._config.confirm_telescope_deletions then + local config = require('git-worktree.config') + if not config.confirm_telescope_deletions then return true end