folke / tokyonight.nvim

🏙 A clean, dark Neovim theme written in Lua, with support for lsp, treesitter and lots of plugins. Includes additional themes for Kitty, Alacritty, iTerm and Fish.
Apache License 2.0
6.27k stars 417 forks source link

bug: mini.statusline highlighting #557

Closed 231tr0n closed 3 months ago

231tr0n commented 3 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.11.0-dev-323+g8f5e90811

Operating system/version

Ubuntu 24.04 WSL

Describe the bug

image Statusline colors are inverted for mini.statusline unlike lualine.nvim which looks like below image

Steps To Reproduce

Just use the default configuration for tokyonight.nvim and call setup function for mini.statusline.

Expected Behavior

Statusline to be inverted.

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "echasnovski/mini.statusline",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

require("mini.statusline").setup()

vim.cmd.colorscheme("tokyonight")
-- add anything else here
folke commented 3 months ago

mini.statuline != lualine. If you feel it could be improved, feel free to make a PR