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