lualine.nvim/lua/lualine/components/special/functon_component.lua

10 lines
288 B
Lua

local FunctionComponent = require('lualine.component'):new()
FunctionComponent.new = function(self, options, child)
local new_instence = self._parent:new(options, child or FunctionComponent)
new_instence.update_status = options[1]
return new_instence
end
return FunctionComponent