shadmansaleh 846e5bdabf fix(extension): fix some extension showing a section in whole line
For now use a dummy component to lualine_x on extensions that only define
lualine_a. This will let the renderer know right sections do exist.

closes #73
2021-10-01 19:54:57 +06:00

24 lines
327 B
Lua

-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function fzf_statusline()
return 'FZF'
end
local empty = {
function()
return ' '
end,
padding = 0,
}
local M = {}
M.sections = {
lualine_a = { fzf_statusline },
lualine_x = { empty },
}
M.filetypes = { 'fzf' }
return M