projekt0n / github-nvim-theme

Github's Neovim themes
MIT License
2.02k stars 104 forks source link

github_dark_high_contrast colorscheme is not using options.styles config #307

Open aLucaz opened 7 months ago

aLucaz commented 7 months ago

normal dark:

image

high contrast:

image

my config:

          styles = {                   -- Style to be applied to different syntax groups
            comments = 'italic',     -- Value is any valid attr-list value `:help attr-list`
            functions = 'NONE',
            keywords = 'italic',
            variables = 'NONE',
            conditionals = 'NONE',
            constants = 'NONE',
            numbers = 'NONE',
            operators = 'NONE',
            strings = 'NONE',
            types = 'NONE',
          },

also some keywords are not being considered like: function, import, from

gennadigennadigennadi commented 7 months ago

Same problem with the github_light theme.

av223119 commented 6 months ago

I observe the issue with github_dark_dimmed, but surprisingly NOT with github_light or github_dark_high_contrast.

rubensrbr commented 6 months ago

Same problem with "github_dark_default"

mabugaj commented 5 months ago

Ok for everyone that are having the same issue. I've spent some quality time to get my comments italic. For Lazy here is how the code looks like (options keyword is crucial here):

{
  "projekt0n/github-nvim-theme",
  lazy = false,
  priority = 1000,
  config = function()
    require("github-theme").setup({
      options = {
        styles = {
          comments = "italic",
        },
      },
    })
  end,
}

After that open new nvim instance and invoke in the cmd mode :GithubThemeCompile and after that it should work properly. Hope this helps someone.

Also this should be put, with exclamation mark, into the the README file, cause like we see a lot people are having problem with it.