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
1 changed files with 9 additions and 10 deletions

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
}