Giter VIP home page Giter VIP logo

Comments (13)

fayimora avatar fayimora commented on July 25, 2024 3

@joshdick THANKS! That fixed it. 👍 ⚡️

from onedark.vim.

fayimora avatar fayimora commented on July 25, 2024
" .vimrc
let g:onedark_termcolors=16
syntax on
colorscheme onedark
set background=dark
let g:lightline = {
  \ 'colorscheme': 'onedark',
  \ }
let g:airline_theme='onedark'
" .gvimrc
syntax on
set background=dark
colorscheme onedark
let g:lightline = {
  \ 'colorscheme': 'onedark',
  \ }
let g:airline_theme='onedark'

from onedark.vim.

sijad avatar sijad commented on July 25, 2024

maybe this is because of true color, this might works:

"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support
"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.)
if (empty($TMUX))
  if (has("nvim"))
    "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
    let $NVIM_TUI_ENABLE_TRUE_COLOR=1
  endif
  "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
  "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
  " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
  if (has("termguicolors"))
    set termguicolors
  endif
endif

from onedark.vim.

fayimora avatar fayimora commented on July 25, 2024

@sijad I don't think it is. I tried that and got patches of solarised in the terminal(in nerdtree and lightline)

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

In MacVim, aside from lightline, do the theme's colors otherwise appear correctly?

In terminal Vim, you've configured let g:onedark_termcolors=16 which will use your terminal's built-in colors if you aren't using true-color mode like @sijad mentioned. You either need to enable true color mode, or set your terminal to use onedark.vim's terminal colors as described in the README.

from onedark.vim.

fayimora avatar fayimora commented on July 25, 2024

I'm quite confused right now. Does this mean I have true color? If yes what do I do now?

from onedark.vim.

fayimora avatar fayimora commented on July 25, 2024

@joshdick Yeah so far everything else appears properly. I also have my iTerm theme set to the preset you have in the repo.

from onedark.vim.

fayimora avatar fayimora commented on July 25, 2024

I seem to have managed to get this working. The only issue now is my vim's background colour in when using tmux is a bit off.


I followed the instructions at tmux-24bit-color.html#usage but that didn't help 😢 Yes I have the tmux block from the README in my vimrc

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

Okay, it looks like 256 color mode is being used inside tmux, which would explain the color difference.

Inside tmux, if you run tmux info | grep Tc, do you see the output Tc: (flag) true? Are you using vim or nvim inside tmux, and if so, which version(s)?

from onedark.vim.

fayimora avatar fayimora commented on July 25, 2024

@joshdick

from onedark.vim.

fayimora avatar fayimora commented on July 25, 2024

oh and the config looks like this

set -g default-terminal xterm-256color
set-option -ga terminal-overrides ",xterm-256color:Tc"

screen-256color didn't do the trick either

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

If you're using the snippet @sijad mentioned above, you should remove the first and last lines (the if (empty($TMUX)) check and corresponding endif.)

If that doesn't do the trick, can you post your entire .vimrc somewhere?

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

You're welcome, glad we figured it out!

from onedark.vim.

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.