This is the first release with +- stable api:
-- Prepare needed components --
local components = {
mode = {
provider = require('feline.providers.vi_mode').get_vim_mode,
}
file_name = {
provider = function()
return vim.fn.expand('%:t')
end,
}
}
-- Describe how the statusline should look like --
local theme = {
active = {
left = {
separators = { right = '', hl = { fg = 'blue' } },
a = { hl = { bg = 'blue' } },
},
right = {
separators = { left = { '', hl = { fg = 'green' } } },
z = { hl = { bg = 'green' } },
},
},
}
-- Create your oun statusline --
require('feline-theme').setup_statusline({
active = {
left = {
a = { 'file_name' },
},
right = {
z = { 'mode' },
},
},
theme = theme,
components = components
})
More details about configuration you can find in the example: Guide.md.