Skip to content

Releases: pearofducks/ansible-vim

3.4

29 Oct 06:29
Compare
Choose a tag to compare

What's Changed

3.3

27 May 09:41
93798e8
Compare
Choose a tag to compare
3.3

What's Changed

New Contributors

Full Changelog: 3.2...3.3

Syntax keywords update, new config flag available

06 Jun 05:31
8040992
Compare
Choose a tag to compare
  • ansible_with_keywords_highlight is soft-deprecated (there is backwards compatibility in place for now), and is replaced with ansible_loop_keywords_highlight which aligns better with modern Ansible keywords for loops
  • Keywords that have been removed from Ansible are no longer highlighted, and new keywords in latest Ansible are added

FQCN snippet generation

11 Apr 07:21
bc9c3bf
Compare
Choose a tag to compare

Thanks to @pescobar the snippet-generation script now supports fully qualified collection names when used against Ansible 2.10 or greater.

https://docs.ansible.com/ansible/latest/user_guide/collections_using.html

Reproducible UltiSnip snippets - drop Python 2 support

13 Jul 18:19
cfdde31
Compare
Choose a tag to compare

Breaking: Drops Python 2 support in UltiSnip generation

Change: Makes the UltiSnip snippets generation reproducible

Add 'loop' keyword

12 Jul 09:55
30f307f
Compare
Choose a tag to compare

Add highlighting for the loop keyword, which has been available since Ansible 2.5.

https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html

Minor fixes and improvements

26 Mar 13:35
8da127b
Compare
Choose a tag to compare

Notable changes:

  • python3 support added to the UltiSnip generate.py, as well as Mac Homebrew support
  • an old regexpengine workaround was removed that was breaking some setups

Otherwise there were minor fixes included in this changeset.

Compound filetypes

29 Mar 17:02
01d0e7d
Compare
Choose a tag to compare

The filetype for playbooks is now set to yaml.ansible.

  • Using a compound filetype here improves compatibility with some other plugins, and is a bit more honest about the filetypes being used. We could set it to yaml.jinja2.ansible, if there are strong opinions on this please open an issue.
  • This only breaks setups using vim plugin on-demand loading features — e.g. { 'for': 'ansible' } in vim-plug. Otherwise this change should not break anything.

g:ansible_extra_syntaxes is deprecated in favor of g:ansible_template_syntaxes — which will use conditional compound filetypes, instead of sourcing all filetypes listed and hiding them under ansible_template.

  • While this is a complete deprecation of one setting, the new functionality is significantly better all around and should support the same use-cases.
  • Example: a ruby+ansible-template will have a filetype of ruby.jinja2 instead of ansible_template

One non-breaking change is also added, this plugin gains additional compatibility with stephpy/vim-yaml — syntax highlights will be improved when using this plugin.

ansible-only filetype

29 Mar 16:58
aa34a39
Compare
Choose a tag to compare

DEPRECATED

This is the last version using ansible as the filetype for Ansible playbooks. This tag is created as a convenience for anyone to branch from or keep as their plugin target.

1.0

08 Nov 09:13
Compare
Choose a tag to compare
1.0

Changes:

  • hosts files are now highlighted with our own rules, rather than use dosini rules. This allows for much better treatment of variables and Ansible's special categories (e.g. [foo:vars]).