Reintroduce docs for component specific transitional separators

This reverts commit fd5f635f4f.
This commit is contained in:
shadmansaleh 2021-08-26 18:09:59 +06:00 committed by Shadman
parent c0b9757ab0
commit e831cfa9c5
2 changed files with 12 additions and 0 deletions

View File

@ -281,6 +281,12 @@ sections = {
'mode', 'mode',
icon = nil, -- displays icon in front of the component icon = nil, -- displays icon in front of the component
separator = nil, -- Determines what separator to use for the component. separator = nil, -- Determines what separator to use for the component.
-- when a string is given it's treated as component_separator.
-- When a table is given it's treated as section_separator.
-- This options can be used to set colored separators
-- arround component. Option need to be set like `separator = {'', ''}`.
-- Where first element is left_separator and 2nd element is right separator.
-- Passing empty string disables that separator
condition = nil, -- condition function, component is loaded when function returns true condition = nil, -- condition function, component is loaded when function returns true
-- custom color for component in format -- custom color for component in format
-- color = {fg = '#rrggbb', bg= '#rrggbb', gui='style'} -- color = {fg = '#rrggbb', bg= '#rrggbb', gui='style'}

View File

@ -215,6 +215,12 @@ Local options~
'mode', 'mode',
icon = nil, -- displays icon in front of the component icon = nil, -- displays icon in front of the component
separator = nil, -- Determines what separator to use for the component. separator = nil, -- Determines what separator to use for the component.
-- when a string is given it's treated as component_separator.
-- When a table is given it's treated as section_separator.
-- This options can be used to set colored separators
-- arround component. Option need to be set like `separator = {'', ''}`.
-- Where first element is left_separator and 2nd element is right separator.
-- Passing empty string disables that separator
condition = nil, -- condition function, component is loaded when function returns true condition = nil, -- condition function, component is loaded when function returns true
-- custom color for component in format -- custom color for component in format
-- color = {fg = '#rrggbb', bg= '#rrggbb', gui='style'} -- color = {fg = '#rrggbb', bg= '#rrggbb', gui='style'}