Giter VIP home page Giter VIP logo

Comments (19)

joshdick avatar joshdick commented on July 25, 2024

This is happening because the theme is running in 256-color mode in iTerm2.

To see proper colors in iTerm2, you need to switch to 16-color mode as described at the bottom of the README: https://github.com/joshdick/onedark.vim#16-color-mode

from onedark.vim.

ankitsultana avatar ankitsultana commented on July 25, 2024

I did install One Dark.itermcolors and I am using it. Also I have this in my vimrc.

colorscheme onedark
let g:airline_theme='onedark'
let g:onedark_termcolors=16

Still it's not working

Edit: I have realized that iTerm is not loading One Dark. It's able to load to One Dark 1.0.0 and One Light 1.0.0 but nothing's happening when I select One Dark. Is there something I am missing?

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

Try putting the let g:onedark_termcolors=16 line before the colorscheme onedark line.

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

It looks like you were probably using the color schemes from this project.

I'm not sure why iTerm wouldn't switch colors when picking the scheme from this repository. Maybe try removing the "One" themes from the other project in iTerm?

from onedark.vim.

ankitsultana avatar ankitsultana commented on July 25, 2024

I tried deleting both of the 1.0.0 versions and your version, then reimported your version, still iTerm isn't recognizing it.

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

What version of iTerm2 are you using?

from onedark.vim.

ankitsultana avatar ankitsultana commented on July 25, 2024

2.1.4

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

Would you mind seeing if 2.9 (test release) makes a difference? The color scheme format does appear to have changed.

from onedark.vim.

ankitsultana avatar ankitsultana commented on July 25, 2024

I am trying right now. Though it will take some time, internet in my dorm is not "praiseworthy". What I tried in the mean time was to rename the termcolors file that you provided, thinking that the error might because of failed name resolution. That didn't work either.

from onedark.vim.

ankitsultana avatar ankitsultana commented on July 25, 2024

It seems to be working now. I am using the 2.9 beta version of iTerm. Thanks

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

Cool, glad we figured it out!

from onedark.vim.

ankitsultana avatar ankitsultana commented on July 25, 2024

Hey can you tell me how exactly I can edit the color scheme. Basically I want to change the incsearch color to something that is prominent, like dark_yellow. I tried setting the value in line 154 of onedark.vim but it didn't change anything.

Also can you address this issue in general ? incsearch's color is visual black, which is barely visible, especially considering the fact that incsearch's color should be prominent so it kind of stands out from the rest of the code.

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

You can change the values of the "fg" and "bg" properties on any line to the variable names defined in the "Color Variables" section of the file. Omitting either property will use default/existing colors for that property.

I made IncSearch match visual mode highlighting since that was my preference, but you can change it to suit your needs; one possible combination is white foreground and red background.

If you choose to set a background color, the foreground color should also be set to something specific (black in the current case), because when using a set background color like red, if red text happens to be highlighted, it would be unreadable (red text on a red background.)

from onedark.vim.

ankitsultana avatar ankitsultana commented on July 25, 2024

Why doesn't this work, to change the color for IncSearch

call s:h("IncSearch", { "fg": s:dark_yellow, "bg": s:visual_grey }) " 'incsearch' highlighting; also used for the text replaced with ":s///c"

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

That works just fine for me. Did you re-source .vimrc or restart Vim after making the change?

from onedark.vim.

ankitsultana avatar ankitsultana commented on July 25, 2024

Yup did resource .vimrc, even restarted iTerm. The problem is onedark.vim is not loading for some reason.

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

Do you see any errors in Vim on startup?

Are you editing the correct copy of the theme (maybe you have one being loaded by a plugin manager and one in the normal colors directory?)

from onedark.vim.

ankitsultana avatar ankitsultana commented on July 25, 2024

It's working now, deleted the old copy and cloned it again in bundle. Thanks anyways !

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

You're welcome!

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.