Configure headers and sticky headers
mainKeep header rows visible while scrolling.
Auto-detection: The plugin identifies headers by looking for the first non-comment line and checking for Type Mismatch (text vs numeric data) or Length Deviation (significant length differences between the first row and data rows).
Manual Configuration: You can specify a fixed line number or disable headers entirely.
-- Auto-detect header with sticky behavior
{
view = {
header_lnum = true,
sticky_header = {
enabled = true,
separator = "─",
},
},
}
-- Manual header line
{ view = { header_lnum = 1 } }
-- Disable header
{ view = { header_lnum = false } }