lualine.nvim/lua/lualine/components/special/function_component.lua
2021-04-22 21:09:34 +02:00

9 lines
237 B
Lua

local FunctionComponent = require('lualine.component'):new()
FunctionComponent.update_status = function(self)
-- 1st element in options table is the function provided by config
return self.options[1]()
end
return FunctionComponent