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 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,
|
||||||
|
|
Loading…
Reference in a new issue