lualine.nvim/lua/lualine/components/special/function_component.lua

9 lines
259 B
Lua
Raw Normal View History

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