-
Notifications
You must be signed in to change notification settings - Fork 284
Closed
Labels
Description
Contributing guidelines
- I have read CONTRIBUTING.md
- I have read CODE_OF_CONDUCT.md
- I have updated 'mini.nvim' to latest version of the
mainbranch
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
- 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")- Open the repro config file using
NVIM_APPNAME=repro nvim init.lua. - 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. - This issue does not happen if in the config
vim.cmd.colorschemecall is done after mini.tabline setup.