Skip to content

Some colors don't match with the original VSCode theme #72

Open

Description

@ndavidpsi

Hi, thanks for the colorscheme, it's my favorite and the one I have been using for the past couple of months.

But one thing caught my attention, the color of functions, imports, classes, etc is usually blue and not purple in the original colorscheme. Would it be possible to change those or was it intentional?

Activity

  1. tomasiser commented on Jan 8, 2021

    @tomasiser
    Owner

    Hi! Thank you for your comment.

    In my opinion, the biggest difference is caused by the fact that VSCode uses a different strategy to parse the source codes and different highlight categories. In Vim, the basic parsing is very simple and you usually need to install more advanced plugins.

    Throughout the life of vim-code-dark, a lot of people have contributed with more accurate color definitions. If you look at the codedark.vim file, for example at the JavaScript section, you will see that jsFuncArgs, jsClassDefinition, etc. use a blue color, not purple (pink). However, this depends on how your Vim and your plugins parse your JavaScript code, and it works the same for all other languages.

    If you are not a fan of the purple (pink) color, you can try using the conservative mode (let g:codedark_conservative = 1) that replaces pink by blue.

  2. ndavd commented on Jan 8, 2021

    @ndavd

    Thank you for the explanation :) it's my favorite colorscheme, I have tried others but I always end up going back to this one (I like to change the background color to black, it looks really nice that way as well).

    I use treesitter highlighting which helps. But what I meant was something more like the gruvbox-material theme where there are two different colors for example let and set in vimscript not removing the pink color just adding a few more. Maybe even create a new more colorful mode who knows :D

  3. David-Else commented on Apr 7, 2021

    @David-Else
    Contributor

    Things are MUCH better with treesitter and #79

  4. David-Else commented on Apr 14, 2021

    @David-Else
    Contributor

    @tomasiser May I suggest you add this theme to https://github.com/rockerBOO/awesome-neovim#treesitter-supported-colorschemes now that it is treesitter compatible.

  5. Yorisoft commented on Feb 22, 2025

    @Yorisoft

    A bit late to the conversation but hoping I can get some help.

    I'm using Vim 8.2 and I use coc as my lsp.
    I'm am looking for a theme like visual studio proper. This one I think is close enough.
    Thanks for the effort but into it! ❤️

    I write a lot of c++, and notice that the object/classes are not the teal I'm used to in vscode/vsproper.

    I've tried:

    " Set colorscheme Onedark
    set t_Co=256
    set t_ut=
    # And also
    " let g:codedark_conservative=1
    " If you like the new dark modern colors (Needs feedback!)
    " let g:codedark_modern=1
    

    Image

    None of these setting got me the teal color.
    Treesitter is not supported for vanilla vim. Might someone know a solution to this? This is my complete .vimrc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions