Closed endoze closed 1 year ago
cant reproduce
@siduck Something worth mentioning is inside of a Tmux session, this problem doesn't occur for me. It's only when I start everything outside of tmux. I'm curious if my $TERM setting is related to why it's only outside Tmux and you are unable to reproduce?
My $TERM outside of tmux (set via Alacritty configuration) is xterm-256color. My $TERM inside of tmux (set via tmux.conf) is screen-256color. I'm not sure what terminal program you are using but what $TERM does Neovim report in the case where yours works?
mine
can you try other terminals? like wezterm kitty, i think even alacritty should work fine
I've tried several other terminals (iTerm2, kitty) and I think I can finally recreate the issue properly now. You need to be using a light color scheme in your terminal and then do the steps listed in the original issue. Here's a short video showing both a light color scheme for my Alacritty configuration and then a dark color scheme for my Alacritty configuration.
https://user-images.githubusercontent.com/997161/234087093-907c5cb3-d3d4-4c5b-9593-4bfeba6f08f5.mov
Here are the color schemes I used in Alacritty in the video:
# solarized-light
colors:
primary:
background: '#fdf6e3' # base3
foreground: '#657b83' # base00
normal:
black: '#073642' # base02
red: '#dc322f' # red
green: '#859900' # green
yellow: '#b58900' # yellow
blue: '#268bd2' # blue
magenta: '#d33682' # magenta
cyan: '#2aa198' # cyan
white: '#eee8d5' # base2
bright:
black: '#002b36' # base03
red: '#cb4b16' # orange
green: '#586e75' # base01
yellow: '#657b83' # base00
blue: '#839496' # base0
magenta: '#6c71c4' # violet
cyan: '#93a1a1' # base1
white: '#fdf6e3' # base3
# solarized-dark
colors:
primary:
background: '0x002b36'
foreground: '0x839496'
normal:
black: '0x073642'
red: '0xdc322f'
green: '0x859900'
yellow: '0xb58900'
blue: '0x268bd2'
magenta: '0xd33682'
cyan: '0x2aa198'
white: '0xeee8d5'
bright:
black: '0x002b36'
red: '0xcb4b16'
green: '0x586e75'
yellow: '0x657b83'
blue: '0x839496'
magenta: '0x6c71c4'
cyan: '0x93a1a1'
white: '0xfdf6e3'
will look into this, i can reproduce it now
@endoze happens only in alacritty for me, kitty works fine and other terminals too...
i see that the "bg" opt isnt being set in such terminals when light theme is set
proof :
Alacritty with dark theme :
Alacritty with light theme :
@endoze just add this in your custom init.lua for now
vim.schedule(function()
dofile(vim.g.base46_cache .. "defaults")
end)
This is a neovim issue, https://github.com/neovim/neovim/issues/22614
@nullchilly how do you handle this in catpucin?
I asked user to use this workaround:
{ "catppuccin/nvim", name = "catppuccin", opts = { background = { light = "mocha" } } }
@endoze just add this in your custom init.lua for now
vim.schedule(function() dofile(vim.g.base46_cache .. "defaults") end)
This is a neovim issue, neovim/neovim#22614
This fix seems to break highlighting for me
@endoze just add this in your custom init.lua for now
vim.schedule(function() dofile(vim.g.base46_cache .. "defaults") end)
This is a neovim issue, neovim/neovim#22614
This is happening to me in iterm2 macos still. This fixed it, thank you! Any idea if there's a true fix for this or is this just how it it is?
@jetaggart we will have to either wait for the upstream fix or you can use another terminal
Got it, thank you!
Got it, thank you!
btw this issue will occur only if your terminal has a light theme, I think . So just use a dark theme :D
I'm a fan of torch mode, can't teach an old dog new tricks 🧓
Describe the bug After a fresh install of NvChad, when I close and re-open neovim, not all of the theme highlight groups seem to be set properly.
To Reproduce Steps to reproduce the behavior:
Expected behavior The theme highlight groups should all be loaded upon opening Neovim.
Screenshots
https://user-images.githubusercontent.com/997161/233466211-f2d92545-7af8-4c4e-ba3d-e2c309cba26e.mp4
Desktop (please complete the following information):