local function get_highlight() if vim.g.colors_name == "catppuccin" then -- NOTE: This won't work since no integration is available return require("catppuccin.groups.integrations.bufferline").get() -- return require("rose-pine.plugins.toggleterm") elseif vim.g.colors_name == "rose-pine" then return require("rose-pine.plugins.toggleterm") end end return { "akinsho/toggleterm.nvim", keys = { { "!", "ToggleTerm direction=horizontal", desc = "Toggle Terminal" }, { "tf", "ToggleTerm direction=float", desc = "Toggle Terminal" }, { "tt", "ToggleTerm", desc = "Spawn a float terminal" }, }, event = "ColorScheme", opts = { highlights = get_highlight(), }, cmd = { "ToggleTerm", "LazyGit", }, }