Extend feline LSP status with TS current location
This commit is contained in:
parent
33087ba392
commit
d32cc47954
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue