From ca8353f7700f09e020373038aa57b13e0292fa1c Mon Sep 17 00:00:00 2001 From: Marcus Ho Date: Mon, 27 Jan 2025 15:21:42 +0800 Subject: [PATCH] Set undotree_SetFocusWhenToggle to 1 --- lua/custom/plugins/undotree.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/custom/plugins/undotree.lua b/lua/custom/plugins/undotree.lua index c09143e7..0ba2ed64 100644 --- a/lua/custom/plugins/undotree.lua +++ b/lua/custom/plugins/undotree.lua @@ -3,4 +3,7 @@ return { keys = { { 'u', 'UndotreeToggle', desc = 'Toggle undotree' }, }, + config = function() + vim.g.undotree_SetFocusWhenToggle = 1 + end, }