dracula / vim

🧛🏻‍♂️ Dark theme for Vim
https://draculatheme.com/vim
MIT License
1.34k stars 454 forks source link

How to change shade of green #279

Closed norogoth closed 2 years ago

norogoth commented 2 years ago

Hello, looking for a way to just change the shade of green used in dracula. I am not seeing any hex colors in the dracula.vim file so I am unsure how those colors are pulled in. I would like to set my own hex color.

Thanks for the plugin!

benknoble commented 2 years ago

The simplest option is probably something like (:help dracula-customization)

augroup tweak_dracula_green
  autocmd!
  autocmd ColorScheme dracula higlight DraculaGreen …
augroup end

but watch out for DraculaGreenBold, …Italic, and …ItalicUnderline. (Also DraculaSearch and MatchParen.)

The colors are defined in autoload/dracula.vim. Short of modifying the source, I'm not sure of a way to tweak those (and typically modifying the source is a work-intensive effort, e.g., because of updating).