From d32cc47954883bc7085df9ede4c21f2fb8dcc01c Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 15 Feb 2023 15:22:03 +0000 Subject: [PATCH] Extend feline LSP status with TS current location --- config/nvim/lua/config/feline.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/config/nvim/lua/config/feline.lua b/config/nvim/lua/config/feline.lua index 034f83c9..584785ab 100644 --- a/config/nvim/lua/config/feline.lua +++ b/config/nvim/lua/config/feline.lua @@ -1,5 +1,12 @@ -local ctp_feline = require("catppuccin.groups.integrations.feline") -local components = ctp_feline.get() +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 + end + return require("nvim-treesitter").statusline() +end require("feline").setup({ components = components, })