feat: Focus outline if already open

closes #71
This commit is contained in:
~hedy
2024-05-30 07:52:51 +08:00
parent dbd836893f
commit e0b86347ad
3 changed files with 15 additions and 0 deletions

View File

@@ -600,6 +600,10 @@ function Sidebar:open(opts)
if not cfg.o.outline_window.focus_on_open or not opts.focus_outline then
vim.fn.win_gotoid(self.code.win)
end
else
if cfg.o.outline_window.focus_on_open and opts.focus_outline then
self:focus()
end
end
end