Home

Awesome

term-transparency.nvim

A Neovim plugin to seamlessly control transparency settings for both Neovim and WezTerm.

Features

Prerequisites

Installation

lazy.nvim

{
    "IniyanKanmani/term-transparency.nvim",

    dependencies = {
        -- Add your transparency-related plugin dependencies here
    },
}

Default Options

require("term_transparency").setup({
    -- terminal emulators settings
    term = {
        -- wezterm is the only terminal supported as of now
        wezterm = {
            enabled = true,
            transparency_toggle_file = "", -- filepath to wezterm toggle script
        },
    },

    -- notification settings
    notifications = {
        enabled = true,
    },

    -- callback function to be triggered when transparency changes
    on_transparency_change = function() end,
})

Usage

Basic Keybinding

vim.keymap.set( "n", "<leader>bt", "<CMD>ToggleTermTransparency<CR>", { desc = "Toggle Terminal Transparency" })

Commands

Example Setup

Check out these example configurations to get started:

Acknowledgments