Skip to content

Conversation

bfoersterling
Copy link

@bfoersterling bfoersterling commented Sep 15, 2025

general goal

Adding support for ansible builtin modules.

changes

highlighting

In the current syntax highlighting you cannot see if the builtin modules typed into the editor actually exist.
Also the modules debug and shell are highlighted in different colors.

vim-ansible-highlighting_before_1

With support for the builtin modules you can instantly detect typos:
vim-ansible-highlighting_2

completion

After the pattern ansible.builtin. autocompletion can be used with an omni function.
(ctrl + x + o)
vim-ansible-completion_1

vim-ansible-comletion_2

@pearofducks
Copy link
Owner

This looks like a great addition, thanks for getting a PR together!

Two quick things:

  • Can you add a quick note about it in the README?
  • Is the highlight group you're creating for this user-overrideable?
    • If not, is it trivial to make it so?
    • If so, can you also add this to the README?

(I should be much faster to respond now, I was out of town on a trip last week)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants