Giter VIP home page Giter VIP logo

Comments (8)

joshdick avatar joshdick commented on July 25, 2024

What happens if you omit the set t_Co=256 line?

All of the g:onedark variable declarations need to appear before the colorscheme onedark line for them to have any effect.

You also shouldn't need to set g:onedark_termcolors at all, since 256 is the default.

from onedark.vim.

jimzenn avatar jimzenn commented on July 25, 2024

Thanks for your help.

I tried everything I can. It just don't work. Don't work in both Mac Terminal and iterm2. Don't work with MacVim or NeoVim. It only works in MacVim GUI. However, Terminal and iTerm2 do have the same wrong scheme.

Not only this color schemes, none of the color schemes except solarized works the exact way as the preview pics. There are always an apparent difference. Even those Base 16 schemes do not work correctly.

My iterm2 is set to xterm-256. Any idea how this happens?

from onedark.vim.

jimzenn avatar jimzenn commented on July 25, 2024

Oh... Finally I got the solution!
neoVim has an option:
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
and it solves everything.

Though I don't know what this is but it's great!

Thanks anyway :P

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

Glad you figured it out!

from onedark.vim.

shangsunset avatar shangsunset commented on July 25, 2024

Hey @joshdick !
I installed One Dark.itermcolors, and set the theme to use terminal's color. bui i still cant get the color right.
screen shot 2016-02-01 at 10 18 50 am

my config:

syntax enable 
let g:onedark_termcolors=16
colorscheme onedark
set background=dark

any idea where i did wrong? thanks.

@Jim-Zenn I also tried let $NVIM_TUI_ENABLE_TRUE_COLOR=1 as im using neovim, but it didnt work for me. can i see your config regarding to the theme if possible?

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

The colors themselves look correct, but if you're wondering why the highlighting doesn't look exactly like it does in my screenshot, it's because I'm using the othree/yajs.vim plugin which has better JavaScript highlighting than stock Vim.

from onedark.vim.

shangsunset avatar shangsunset commented on July 25, 2024

got it. thanks for the help!

from onedark.vim.

filipebarros avatar filipebarros commented on July 25, 2024

I had to remove the set background=dark for the theme to work. Without it it looks fine

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.