Add line function that prints a line of given length

This commit is contained in:
Talia 2018-08-16 08:17:48 +02:00
parent b3ec39a013
commit 2019502368
1 changed files with 3 additions and 1 deletions

View File

@ -68,6 +68,8 @@ col = (col) -> tab([{elem} for elem in *col])
row = (row) -> tab{row}
box = (box) -> tab{{box}}
line = (len=80) -> print string.rep('─', len)
CLASS = [[
print vim.col {
'Class' -- Title
@ -90,7 +92,7 @@ DRAW = [[
{
:tree, :box, :tab, :col, :row
:tree, :box, :tab, :col, :row, :line
:CLASS, :DRAW
-- Aliases
table: tab