Shatur / neovim-ayu

Ayu theme for Neovim.
GNU General Public License v3.0
416 stars 42 forks source link

Override does not change colors as expected #22

Closed zanshin closed 1 year ago

zanshin commented 1 year ago

When adding an override to the Ayu color scheme the result does not alter the displayed colors.

Code: opt.termguicolors = true -- enable 24-bit RGB colors
cmd('set background=dark')
cmd('colorscheme ayu-dark')

require('ayu').setup({                                                                                                                            
    mirage = false,                                                                                                                              
    overrides = {                                                                                                                                    
        Comment = { fg = "Gray63" },                                                                                                                 
        line = { fg = "#ffcc66" }                                                                                                               
     },                                                                                                                                                
})

Expected behavior: Line numbers are #ffcc66 - a golden yellow color, and comments are a gray.

Actual result: Colors are unchanged from their default values

:highlight comment                                                                                                                                               
Comment        xxx cterm=italic gui=italic guifg=#626a73 

:highlight linenr                                                                                                                                                
LineNr         xxx guifg=#242a35 

I have tried using guifg and fg and neither produces the result I’m expecting.

Shatur commented 1 year ago

You need to call setup before colorscheme ayu-dark.

zanshin commented 1 year ago

Thank you. I missed that. It is working as expected. Closing the issue.