Extend feline LSP status with TS current location

This commit is contained in:
Evie Litherland-Smith 2023-02-15 15:22:03 +00:00
parent 33087ba392
commit d32cc47954

View file

@ -1,5 +1,12 @@
local ctp_feline = require("catppuccin.groups.integrations.feline") local components = require("catppuccin.groups.integrations.feline").get()
local components = ctp_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
end
return require("nvim-treesitter").statusline()
end
require("feline").setup({ require("feline").setup({
components = components, components = components,
}) })