ghifarit53 / tokyonight-vim

A clean, dark vim colorscheme that celebrates the lights of downtown Tokyo at night, based on a VSCode theme by @enkia with the same name [Archived because I'm no longer using this]
MIT License
557 stars 48 forks source link

Weird background #19

Closed pavelshtanko closed 3 years ago

pavelshtanko commented 3 years ago

I have these backgrounds for various types of variables or function calls.

image

How can I fix it?

p.s. The theme is amazing!

ghifarit53 commented 3 years ago

That's odd. Could you post your .vimrc or init.vim so I can reproduce it?

And thanks for the compliment! all credits goes to @ enkia (the original author of the colorscheme)

pavelshtanko commented 3 years ago

https://gist.github.com/pavelshtanko/fe2d37f72d91f7923b074cfab717a362

a bit messy but that's it

ghifarit53 commented 3 years ago

What's the terminal emulator you're currently using and would you mind trying other terminal to see if the problem persist?

pavelshtanko commented 3 years ago

iterm2, I'll try alacritty now

pavelshtanko commented 3 years ago

same in alacritty

ghifarit53 commented 3 years ago

Seems like the problem lies in the .vimrc

ghifarit53 commented 3 years ago

Sorry, I can't seem to reproduce the issue image Just my guess, but maybe you happen to have other .vim files that override settings in vimrc (maybe in autoload or after folder in ~/.vim). Also did the issue happen just recently?

Hamptonjc commented 3 years ago

Same issue here. Any solution @pavelshtanko ?

benjamingarcia commented 3 years ago

Hello, I have the same issue: Theme works on macvim, but not on vim or neovim in a terminal (I tested with alacritty, iterm2 and terminal)

benjamingarcia commented 3 years ago

Hello! Well, I found how fix this issues thanks to another theme (https://github.com/joshdick/onedark.vim). It's an issues with italic encoding I suppose. I follow this solution, and now it's fixed. And before this I update tmux.conf thanks to this articles on alacritty, I set Term as TERM: xterm-256color

and finally, on vim :

set termguicolors
set t_Co=256

@Hamptonjc @pavelshtanko

pavelshtanko commented 3 years ago

Hello! Well, I found how fix this issues thanks to another theme (https://github.com/joshdick/onedark.vim). It's an issues with italic encoding I suppose. I follow this solution, and now it's fixed. And before this I update tmux.conf thanks to this articles on alacritty, I set Term as TERM: xterm-256color

and finally, on vim :

set termguicolors
set t_Co=256

@Hamptonjc @pavelshtanko

It works! Indeed at first I didn't follow the link with solution, but now it's totally fine.

Thanks for your helP!