-
Notifications
You must be signed in to change notification settings - Fork 34
Tables
Shawon edited this page Aug 5, 2024
·
4 revisions
tables = {
enable = true,
use_virt_lines = false,
text = {},
hl = {}
}
-
enable,
boolean
or nilUsed for toggling rendering of tables.
-
use_virt_lines,
boolean
or nilWhen
true
the top and bottom border of the table are made using virtual lines.Useful if you don't like adding spaces between tables. Disabled by default.
-
text,
table
A list of parts to create the table.
-
hl,
table
or nilA list of highlight groups to color
text
.
Both text
& hl
have the following structure.
{
-- Main parts Seperators
"╭", "─", "╮", "┬",
"├", "│", "┤", "┼",
"╰", "─", "╯", "┴",
-- Alignment indicators
-- Left right center
"╼", "╾", "╴", "╶"
}
Here's an example table,
Col 1 | Col 2 | Col 3 |
---|---|---|
1 | 2 | 3 |
4 | 4 | 6 |