diff --git a/config/nvim/lua/config/catppuccin_feline.lua b/config/nvim/lua/config/catppuccin_feline.lua index 884a7513..5b6778db 100644 --- a/config/nvim/lua/config/catppuccin_feline.lua +++ b/config/nvim/lua/config/catppuccin_feline.lua @@ -306,6 +306,9 @@ function M.get() -- treesitter position components.active[1][14] = { provider = function() + if not require("nvim-treesitter.parsers").has_parser() then + return "" + end local pos = require("nvim-treesitter").statusline() if pos and pos ~= "" then return pos