Coder Social home page Coder Social logo

Comments (8)

lifepillar avatar lifepillar commented on August 29, 2024

It does work for me. Please provide more details:

  • OS?
  • Vim or Neovim?
  • Vim version
  • GUI or terminal? Specify terminal.
  • Inside tmux/screen?
  • echo &t_Co
  • echo &t_ZH

from vim-gruvbox8.

lifepillar avatar lifepillar commented on August 29, 2024

Also, please test with this minimal vimrc (save somewhere as vimrc_minimal):

set nocompatible
filetype on
filetype plugin on
filetype indent on
syntax on
set backupdir=~/.vim/tmp/backup
set directory=~/.vim/tmp/swap
if !has('nvim')
  set viminfo+=n~/.vim/viminfo
endif

let g:gruvbox_italicize_strings = 0
set background=light
colorscheme gruvbox8

Run vim -i NONE -N -u vimrc_minimal. Replace vim with nvim if you are using the latter.

from vim-gruvbox8.

ljden avatar ljden commented on August 29, 2024

Also just ran into this - probably an issue from somewhere else as the minimal config file works as expected

Setup:

  • Ubuntu 22.04
  • neovim 0.9.0
  • gnome-terminal and bash
  • echo &t_Co && echo &t_ZH commands not found

from vim-gruvbox8.

ljden avatar ljden commented on August 29, 2024

bit more digging, looks like the issue is that neovim in terminal does not ignore the value of gui=italic and gruvbox8 is only disabling italics with cterm=NONE

:verbose highlight String
String         xxx ctermfg=142 gui=italic guifg=#b8bb26
        Last set from ~/.local/share/nvim/site/pack/packer/start/vim-gruvbox8/colors/gruvbox8.vim line 1254

https://github.com/lifepillar/vim-gruvbox8/blob/master/colors/gruvbox8.vim#LL1252-L1255
Commenting out line 1254, String is set on line 809
https://github.com/lifepillar/vim-gruvbox8/blob/master/colors/gruvbox8.vim#LL809
Commenting out line 809, String is set on line 175
https://github.com/lifepillar/vim-gruvbox8/blob/master/colors/gruvbox8.vim#LL175

from vim-gruvbox8.

ljden avatar ljden commented on August 29, 2024

Found it! gui highlight attributes are used in neovim if termguicolours is set
A possible fix for this is changing line 196 to be

-  if has('gui_running')
+  if has('gui_running') || (has('nvim') && &tgc)

from vim-gruvbox8.

lifepillar avatar lifepillar commented on August 29, 2024

Yes, Neovim interprets termguicolors differently from Vim (where it applies to colors, not attributes).

At this point, I think that I will create a branch release for Neovim. Reconciling the differences is getting tiresome.

from vim-gruvbox8.

lifepillar avatar lifepillar commented on August 29, 2024

Please switch to the neovim branch of this repo or download a -neovim release. Feel free to reopen if there are further issues.

from vim-gruvbox8.

ljden avatar ljden commented on August 29, 2024

Thanks for the quick turn around!

from vim-gruvbox8.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.