{
"DCIAL42/line.nvim",
opts = {
-- set options here to customize line
}
-- or
-- config = function()
-- require("theme").setup({...})
-- end
},All generator functions are visible in lua/line.lua, they should just return
a string or nil, if nil they will not be displayed, including left and right text
opts = {
ignore = {
"TelescopePrompt",
"mason",
"harpoon",
},
blocks = {
{
{
name = "file",
generator = function()
return "{%f} %m"
end,
}
},
{
{
name = "diagnostic",
generator = get_diagnostic_text
}
},
{
{
name = "loclist",
generator = get_loclist_info,
left = "loc=[",
right = "]",
},
{
name = "qflist",
generator = get_qflist_info,
left = "qf=[",
right = "]",
}
},
},
}