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 components = require("catppuccin.groups.integrations.feline").get()
local original_provider = components.active[2][1].provider local original_provider = components.active[2][1].provider
components.active[2][1].provider = function() components.active[2][1].provider = function()
local message = original_provider() local sources = {
if message ~= "" then original_provider(),
return message require("nvim-treesitter").statusline(),
}
for _, message in pairs(sources) do
if message ~= "" then
return message
end
end end
return require("nvim-treesitter").statusline() return ""
end end
require("feline").setup({ require("feline").setup({
components = components, components = components,