diff --git a/lua/symbols-outline.lua b/lua/symbols-outline.lua index 734d182..eaef2d8 100644 --- a/lua/symbols-outline.lua +++ b/lua/symbols-outline.lua @@ -112,9 +112,9 @@ function M._goto_location(change_focus) ) if change_focus then vim.fn.win_gotoid(M.state.code_win) - end - if config.options.auto_close then - M.close_outline() + if config.options.auto_close then + M.close_outline() + end end end