Fix crash for telescope buffer

This commit is contained in:
Evie Litherland-Smith 2023-02-15 16:00:32 +00:00
parent ccb49c3cd0
commit 49a17c1d6f

View file

@ -1,11 +1,16 @@
local components = require("catppuccin.groups.integrations.feline").get()
local original_provider = components.active[2][1].provider
components.active[2][1].provider = function()
local message = original_provider()
if message ~= "" then
return message
local sources = {
original_provider(),
require("nvim-treesitter").statusline(),
}
for _, message in pairs(sources) do
if message ~= "" then
return message
end
end
return require("nvim-treesitter").statusline()
return ""
end
require("feline").setup({
components = components,