Skip to content

Initiating mini.tabline setup after mini.base16 colorscheme setup does not color tablline properly. #2047

@231tr0n

Description

@231tr0n

Contributing guidelines

Module(s)

mini.base16, mini.tabline

Neovim version

0.12 (!at least latest Nightly build!)

Description

Setting base16 colorscheme and then initializing mini.tabline setup does not color the tabline properly.
It colors it properly if only done after mini.tabline setup initialization.

Reproduction

  1. Use the following repro config
vim.cmd('echo "Installing `mini.nvim`" | redraw')
local mini_path = vim.fn.stdpath("data") .. "/site/pack/deps/start/mini.nvim"
local clone_cmd = { "git", "clone", "--depth=1", "https://github.com/nvim-mini/mini.nvim", mini_path }
vim.fn.system(clone_cmd)
vim.cmd('echo "`mini.nvim` is installed" | redraw')

vim.cmd("packadd mini.nvim")
require("mini.deps").setup()

vim.cmd.colorscheme("minicyan")
require("mini.tabline").setup()
-- vim.cmd.colorscheme("minicyan")
  1. Open the repro config file using NVIM_APPNAME=repro nvim init.lua.
  2. Observe the tabline color, it matches the background color. Now try setting colorscheme using :colorscheme minicyan. You can see that the tabline no longer matches the background color. It changes color.
  3. This issue does not happen if in the config vim.cmd.colorscheme call is done after mini.tabline setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions