You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
557 B
Lua
38 lines
557 B
Lua
--[[
|
|
/*
|
|
* MODULE
|
|
*/
|
|
--]]
|
|
|
|
local HighlightSegment = {}
|
|
|
|
--[[
|
|
/*
|
|
* CLASS `HighlightSegment`
|
|
*/
|
|
--]]
|
|
|
|
--------------------------------
|
|
--[[ SUMMARY:
|
|
* Create a new `Indicator.HighlightSegment`.
|
|
]]
|
|
--[[ PARAMS:
|
|
* `hlgroup` => The `highlight-group` to be used for this `Indicator.HighlightSegment`.
|
|
* `str` => The text for this `Indicator.HighlightSegment`.
|
|
]]
|
|
--------------------------------
|
|
function HighlightSegment.new(hlgroup, str)
|
|
return {
|
|
hl = hlgroup,
|
|
str = str
|
|
}
|
|
end
|
|
|
|
--[[
|
|
/*
|
|
* PUBLICIZE MODULE
|
|
*/
|
|
--]]
|
|
|
|
return HighlightSegment
|