Separator Function Type
lncrespo opened this issue · comments
Lucas Crespo commented
Hey,
while configuring my galaxyline I tried to generate a separator dynamically using a function like this:
separator = function()
if next(vim.lsp.get_active_clients()) ~= nil then
return " "
else
return ""
end
end,
However, this throws the following error:
Am I doing this wrong here or can the separator not be a function type? Because as of the README, the separator can be a function type:
Nothingness commented
separator
point to the function
separator()
point to the function's result
-- Wrong
local foo = bar .. separator
-- Right
local foo = bar .. separator()
Chip Senkbeil commented
Getting same problem. From the source code, it doesn't look like separator is handled when it's a function.