Turn draw into constant DRAW and fix formatting

This commit is contained in:
Talia 2018-08-15 11:00:23 +02:00
parent 5eda85952e
commit b3ec39a013

View file

@ -80,19 +80,18 @@ print vim.col {
}
]]
draw = ->
for line in * {
{ "─", "│", "┼" }
{ "┌", "┐", "└", "┘" }
{ "├", "┤", "┬", "┴" }
{ "╼", "╽", "╾", "╾" }
}
print table.concat(line, " ")
DRAW = [[
─ │
┌ ┬ ┐
├ ┼ ┤
└ ┴ ┘
╼ ╽ ╾ ╾
]]
{
:tree, :box, :draw, :tab, :col, :row
:CLASS
:tree, :box, :tab, :col, :row
:CLASS, :DRAW
-- Aliases
table: tab
}