nanozuki / tabby.nvim

A declarative, highly configurable, and neovim style tabline plugin. Use your nvim tabs as a workspace multiplexer!
MIT License
563 stars 21 forks source link

Changing colorscheme without restarting causes inconsistent highlighting #112

Closed loqusion closed 1 year ago

loqusion commented 1 year ago

To be clear, the colors appear just fine if I just change the colorscheme in my nvim config. Like so:

gruvbox-material

Screenshot 2023-04-12 at 10 58 24 PM

ayu

Screenshot 2023-04-12 at 10 58 48 PM

However, if I change the colorscheme while nvim is running, the tab highlights become inconsistent (similar to #81):

https://user-images.githubusercontent.com/38332081/231649478-386ac825-aacd-4f76-a9d6-e2405939dbb3.mov


NeoVim version

NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Ventura-arm64.local

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.3/share/nvim"

Run :checkhealth for more info

Tabby config

require('tabby').setup()

Colorschemes

gruvbox-material ayu

nanozuki commented 1 year ago

Can you tell me the repository address of the colorscheme you use and the configuration of the tabby?

loqusion commented 1 year ago

@nanozuki Sure, I've edited the issue to add the colorscheme links and tabby config.

nanozuki commented 1 year ago

Oh... I noticed that you are using the v1.x version config function. And the v1.x version have some legacy bugs. I remain it only for backward compatibility.

You can use the v2 config to fix it (I tested it):

require('tabby.tabline').use_preset('active_wins_at_tail')
nanozuki commented 1 year ago

If there is some other issue, you are welcome to discuss it here