Merge branch 'master' into live-filter-multiinstace

This commit is contained in:
Mateusz Russak
2024-07-28 11:28:26 +02:00
committed by GitHub
6 changed files with 54 additions and 25 deletions

View File

@@ -60,6 +60,7 @@ function Builder:new()
lines = {},
markers = {},
signs = {},
extmarks = {},
}
setmetatable(o, self)
self.__index = self
@@ -228,6 +229,14 @@ function Builder:format_line(indent_markers, arrows, icon, name, node)
add_to_end(line, M.decorators[i]:icons_after(node))
end
local rights = {}
for i = #M.decorators, 1, -1 do
add_to_end(rights, M.decorators[i]:icons_right_align(node))
end
if #rights > 0 then
self.extmarks[self.index] = rights
end
return line
end