From 2019502368f2b4810679e470712a02742d9fa3bf Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 16 Aug 2018 08:17:48 +0200 Subject: [PATCH] Add line function that prints a line of given length --- lua/vim.moon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/vim.moon b/lua/vim.moon index 3b1257d..22c8e7b 100644 --- a/lua/vim.moon +++ b/lua/vim.moon @@ -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