refactor(writer): Move make_outline to sidebar

Was passing self fields a lot, decided to just do all that in Sidebar
in the first place.

Also resolved guides.enabled=false early to setting markers to ' '.

Everything should work the same.
This commit is contained in:
hedy
2023-11-25 16:21:44 +08:00
parent 6d85399550
commit bdeff23390
3 changed files with 233 additions and 247 deletions

View File

@@ -284,6 +284,12 @@ function M.resolve_config()
M.o.guides.enabled = false
end
end
if not M.o.guides.enabled then
M.o.guides = {
enabled = true,
markers = { middle = ' ', vertical = ' ', bottom = ' ' }
}
end
----- SPLIT COMMAND -----
local sc = M.o.outline_window.split_command
if sc then