Closed mtvec closed 2 years ago
It's a bug of scala syntax files, it should use hi default link
instead of hi link
. You should report this bug to their repo.
But there is a temp solution, try g:gruvbox_material_better_performance
, this config option will generate after/ftplugin
which should override the hi groups defined in the syntax files.
But there is a temp solution, try g:gruvbox_material_better_performance, this config option will generate after/ftplugin which should override the hi groups defined in the syntax files.
This doesn't seem to work for me because the builtin syntax/scala.vim
is loaded after gruvbox:
:scriptnames
...
47: ~/.vim/plugged/gruvbox-material/after/ftplugin/scala/gruvbox_material.vim
48: /usr/share/vim/vim82/indent/scala.vim
49: /usr/share/vim/vim82/syntax/scala.vim
Shouldn't gruvbox generate those files in after/syntax
?
Shouldn't gruvbox generate those files in
after/syntax
?
You are right. Done via https://github.com/sainnhe/gruvbox-material/commit/b259ca990645d982655046ac24f115cc5d0f2e59
Thanks! I can confirm the temp solution above now works.
Just a small note: I had to manually remove the old after/ftplugin
directory after the upgrade. I don't think keeping it around will impact functionality but it might decrease performance.
Yeah, I know that, so I commit this https://github.com/sainnhe/gruvbox-material/commit/d043cd49c344e41cd07b19c5252ee31e356c8ebf
Nice, I guess I missed that message when upgrading :sweat_smile:
Operating system/version
Ubuntu 21.10
Terminal emulator/version
alacritty 0.9.0
$TERM environment variable
alacritty
Tmux version
No response
Feature matrix
Minimal vimrc that can reproduce this bug.
Steps to reproduce this bug using minimal vimrc
Edit a file type for which
colors/gruvbox-material.vim
provides specializedhighlight! link
s and the file type's syntax definition also provides alink
.Expected behavior
The
link
defined by gruvbox takes precedence.Actual behavior
The
link
defined by the file type's syntax file has precedence.More info
This happens for example with Scala files.
syntax/scala.vim
defines this:while
colors/gruvbox-material.vim
defines this:I would expect (and want) the color scheme's definition to take precedence but it does not: