Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[neovim] Background color not displaying in neovim #11

Closed
patrl opened this issue Aug 19, 2016 · 16 comments
Closed

[neovim] Background color not displaying in neovim #11

patrl opened this issue Aug 19, 2016 · 16 comments
Assignees
Labels

Comments

@patrl
Copy link

patrl commented Aug 19, 2016

When using the dracula theme in neovim, the terminal background color appears to override the theme background color. This is illustrated below, with urxvt on the left and st on the right, showing that this issue is independent of the terminal emulator used.

dracula-nvim

Here is my init.vim (note that I used vim-plug to install the dracula theme):

call plug#begin()
        Plug 'dracula/vim'
        Plug 'vim-airline/vim-airline'
call plug#end()

colorscheme dracula
@patrl patrl changed the title Background color not displaying in neovim [neovim] Background color not displaying in neovim Aug 19, 2016
@heinst heinst added the bug label Aug 19, 2016
@ghost
Copy link

ghost commented Nov 1, 2016

I believe this to be solved it with this #19.

@dukebarman
Copy link

@patrl, try to add set termguicolors in ~/.config/nvim/init.vim

It works for me in iTerm2

@NikhilMTomy
Copy link

I also have this problem on xterm. But the neovim background is not that of the terminal either.

@Drowze
Copy link

Drowze commented Mar 20, 2018

Can confirm
image

(plus, setting termguicolors simply messes with the colors...)
Tested on gnome-terminal, urxvt, terminator
Ubuntu 16.04
NVIM v0.2.2
Dracula v1.2.7
Plus I am using plug-vim.

@dsifford
Copy link
Member

dsifford commented Mar 20, 2018

@dukebarman Is correct. Issue boils down to the termguicolors option not pairing well with how we currently are setting highlights.

I'll be working on a more hardened fix for this over the next several days as time allows.

(Just a warning: Things might get a worse before they get better, but just bear with me)

@benknoble
Copy link
Member

Related to #59 perhaps ?

@dsifford
Copy link
Member

Should be fixed now. Let me know otherwise.

@stdlo
Copy link

stdlo commented Apr 25, 2018

Issue still exists for me.
urxvt v9.22
dracula/vim v1.4.0
nvim v0.2.2

Shougo/dein.vim for a plugin manager.

@dsifford
Copy link
Member

@loganbickmore Do you have set termguicolors enabled?

@stdlo
Copy link

stdlo commented Apr 25, 2018

@dsifford With set termguicolors enabled vim lights up green. Without it enabled it appears like the original issues screenshot.

@dsifford
Copy link
Member

@loganbickmore see #60

@pdaniell were you ever able to figure out what caused that green color?

@benknoble
Copy link
Member

I'm convinced the 'green screen' effect is caused by setting termguicolors in a term (like macOS Terminal) that doesn't support truecolor.

@benknoble
Copy link
Member

Could also be related to the dracula_colorterm variable as laid out in the help file and over at #65

@dsifford
Copy link
Member

@benknoble That's also what I suspected. I don't believe urxvt has truecolor support.

@loganbickmore can you try unsetting termguicolors and then before loading dracula set let g:dracula_colorterm = 0 and see if that helps?

@stdlo
Copy link

stdlo commented Apr 25, 2018

@dsifford g:dracula_colorterm = 0 resolved the issue. Thank you for you're help, sorry to start adding comments after the issue was closed.

@dsifford
Copy link
Member

@loganbickmore No worries. Glad we could get it sorted out 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

8 participants