This component shows the progress in the file. It has two pre-build modes: 'percent' and 'bar'. The first
one is similar to the default progress component, but in the second 'bar' mode the progress is
shown as a progress bar.
mode
example
'percent'
'bar'
sections = {
lualine_a = {
{
'ex.progress',
-- How to show the progress. It may be the one of two string constants:
-- 'percent' or 'bar'. In the 'percent' mode the progress is shown as percent of the file.
-- In the 'bar' mode it's shown as the vertical bar. Also, it can be a table with symbols
-- which will be taken to show according to the progress, or a function, which receive three
-- arguments: the component itself, the cursor line and total lines count in the file.
mode = 'percent',
-- This string will be shown when the cursor is on the first line of the file. Set `false`
-- to turn this logic off.
top = 'Top',
-- This string will be shown when the cursor is on the last line of the file. Set `false`
-- to turn this logic off.
bottom = 'Bot'
}
}
}
This component shows the progress in the file. It has two pre-build modes: 'percent' and 'bar'. The first one is similar to the default
progress
component, but in the second 'bar' mode the progress is shown as a progress bar.'percent'
'bar'