Closed gardar closed 1 year ago
I have no plans of implementing this myself. I'm happy to accept a PR for it though - unless the code is quite complex to implement it ofc - then perhaps it should live in it's own plugin.
Ok understood, I'm not familiar with it myself as I haven't looked into writing vim plugins myself... I'm not sure if there is a generic way to do so or if it would have to be bound to some other autocompletion plugin. I would think ideally the completion should support deoplete/youcompleteme/mucomplete/etc. Do you have any knowledge on the subject? Any pointers would be helpful.
I came across a plugin called Rocannon which does, among other things, autocompletion for ansible in vim, but it is a bit outdated and seems to be a bit too heavy/complex, so it's perhaps not a good starting point.
This would be especially helpful now that Ansible recommends using FQCNs.
Closing since I found the plugin coc-ansible which does this (and more). Been using it for the past few months with great success.
Are there any plans/interest of adding completion/autocompletion of ansible module names, options and common args. or is would that be better served in a different plugin?
I'm imagining it could be done in a similar manner to the snips already included. I came a cross a atom plugin that could possibly be used as inspiration: https://github.com/h-hirokawa/atom-autocomplete-ansible