Skip to content

Highlights

Aquib edited this page Sep 13, 2021 · 1 revision

Highlights

The - in front of sections inverts the color of that section.

Example:

sections = {
    mid = { 'file_name' }
}

will look like:
highilight_example

now, adding - at the beginning:

sections = {
    mid = { '-file_name' }
}

will look like:
highlight_example2


If you want a specific highlight for a single section, specify it as a table like { highlight, section }

sections = {
    mid = { { 'RandomHighlight', '-file_name' } }
}

And then later specify this somewhere else:

vim.cmd('highlight RandomHighlight guifg=#000000 guibg=#ffffff')

or provide an already defined highlight like LspDiagnosticsError, Visual, etc