fix(guides): Respect config.guides.enabled = false

oopsie
This commit is contained in:
hedy
2023-11-13 21:31:19 +08:00
parent 78ad5cb583
commit ddd4fe4359

View File

@@ -155,6 +155,13 @@ function M.make_outline(bufnr, items, codewin)
end
local guide_markers = cfg.o.guides.markers
if not cfg.o.guides.enabled then
guide_markers = {
middle = ' ',
vertical = ' ',
bottom = ' ',
}
end
local fold_markers = cfg.o.symbol_folding.markers
for node in parser.preorder_iter(items) do