projekt0n / github-nvim-theme

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

Airline theme github_dark_high_contrast not working #268

Closed luisdavim closed 1 year ago

luisdavim commented 1 year ago

Most of the other variants are working but if I select the github_dark_high_contrast one I get the following error:

Error detected while processing function airline#check_mode[66]..airline#highlighter#highlight:                                                                                                                                                                             
line    2:                                                                                                                                                                                                                                                                  
E121: Undefined variable: g:airline#themes#github_dark_high_contrast#palette                                                                                                                                                                                                
Press ENTER or type command to continue 

An interesting thing is that this variant seems to start working if I select the github_dark_default Airline theme first and then switch to it, in that case it fails with E121: Undefined variable: g:airline#themes#github_dark_default#palette, then switching back to github_dark_high_contrast makes everything work as expected...

Looks like there's a typo on https://github.com/projekt0n/github-nvim-theme/blob/main/autoload/airline/themes/github_dark_high_contrast.vim#L1 github_dark_high_constrast instead of github_dark_high_contrast and the github_dark_default theme is setting the theme to the high_contrast one: https://github.com/projekt0n/github-nvim-theme/blob/main/autoload/airline/themes/github_dark_default.vim#LL1C49-L1C49