Closed antoinemadec closed 4 years ago
@nfnty , could you please take a look at this pull request? The changes are minimal, thanks in advance :smiley:
Thanks! I refactored it a bit to reduce complexity and to not interfere with other syntax.
@nfnty I just updated your plugin and it seems your commit is breaking the highlighting: function definition, function calls and builtin function now have the same color.
before 53ea235:
after 53ea235:
mine:
Was this intentional?
Thanks, Antoine
Yeah, my bad. Should be fixed now.
@nfnty thanks a lot for the quick response. The builtin function highlighting is now fixed.
However, function definition
class definition
and function calls
now all have the same color.
Would it be possible to have:
function definition
and class definition
with one highlighting (the same as before my PR)function call
with another highlightingAfter f73fbf0ba68054b44384109c4e0fa4a51eecabbf:
Thanks, Antoine
Yes, just change the highlight link for pythonFunctionCall
.
hi link pythonFunctionCall Identifier
Replace Identifier
with whatever highlight group you want.
@nfnty got it. However, your latest commit also changes the class definition
and the function definition
highlight as shown on my screenshots. Is this intended?
If you've manually changed the highlight group of pythonFunction
before, then it's a side effect of changing the name into pythonFunctionContained
. You just have to replace it in your config.
Nvm, I changed the naming back to what it was before for backward compatibility. Just update to the latest commit and you'll be good to go.
@nfnty , it's working like a charm now :smiley: Sorry about all the back and forth and, again, thank you so much for the prompt response and for this great plugin.
Cheers, Antoine
First, thanks for the great plugin!
I got inspired by this issue: https://github.com/sheerun/vim-polyglot/issues/283 Changes are minimal, I also updated the doc and README
Thanks, Antoine