pearofducks / ansible-vim

A vim plugin for syntax highlighting Ansible's common filetypes
MIT License
800 stars 98 forks source link

Add control variables over some highlighting options. #38

Closed ColOfAbRiX closed 7 years ago

ColOfAbRiX commented 7 years ago

Added two options to control the highlighting of some default keywords. When the new variables are not set the behaviour is unchanged.

pearofducks commented 7 years ago

Makes sense, I'll try and get some time in the next couple days to test/confirm, then will merge.

Thanks for this!

pearofducks commented 7 years ago

I decided this was such a good use case that I extended it to allow exact control over how "normal" and "with" keywords were highlighted. For your specific case ('disabling' highlight) you can use the following two settings - though you can now set these highlights to any syntax highlight type!

let g:ansible_normal_keywords_highlight = 'Identifier'
let g:ansible_with_keywords_highlight = 'Identifier'

Thanks again!

ColOfAbRiX commented 7 years ago

Happy to have contributed and to see what I needed in the official relase. Thanks.