From 49a17c1d6f1f85735b710acef88824b3ab551de3 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 15 Feb 2023 16:00:32 +0000 Subject: [PATCH] Fix crash for telescope buffer --- config/nvim/lua/config/feline.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/config/nvim/lua/config/feline.lua b/config/nvim/lua/config/feline.lua index 584785ab..875a52e2 100644 --- a/config/nvim/lua/config/feline.lua +++ b/config/nvim/lua/config/feline.lua @@ -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,