Fix crash for telescope buffer
This commit is contained in:
parent
ccb49c3cd0
commit
49a17c1d6f
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue