Skip to content

bug: snacks-terminal winblend and transparency #744

@tnxz

Description

@tnxz

Did you check docs and existing issues?

  • I have read all the tokyonight.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of tokyonight.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.12.0-dev-1436+g7ac6e91d06

Operating system/version

macOS 26.0.1

Describe the bug

when transparent=true, winblend show no effect on snacks-terminal

Image

if transparent=false then winblend works as intended

Image

Steps To Reproduce

use the below config

Expected Behavior

when transparent=true winblend should affect snacks-terminal

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {

    {
      "folke/tokyonight.nvim",
      priority = 1000,
      config = function()
        require("tokyonight").setup({
          style = "night",
          transparent = true,
        })

        vim.cmd("colorscheme tokyonight")
      end,
    },

    {
      "folke/snacks.nvim",
      keys = {
        {
          "`",
          function()
            require("snacks").terminal()
          end,
          desc = "Toggle Terminal",
          mode = { "n", "t" },
        },
      },
      opts = {
        terminal = { win = { position = "float" } },
        styles = {
          terminal = { wo = { winblend = 15 } },
        },
      }
    }

  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleThis issue or PR has been inactive for a while

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions