feat: Use augroup

I had no idea augroup does all I tried to do with `self.autocmds`. Oh
well.

Also added sidebar.id, which is one step closer to #25
This commit is contained in:
hedy
2023-11-28 09:38:57 +08:00
parent 8df37421cc
commit 3ebf0ffc69
2 changed files with 11 additions and 22 deletions

View File

@@ -131,7 +131,7 @@ function M.open_outline(opts)
local sidebar = M.sidebars[tab]
if not sidebar then
sidebar = Sidebar:new()
sidebar = Sidebar:new(tab)
M.sidebars[tab] = sidebar
end