dotfiles/salt/states/vim.sls

8 lines
258 B
Plaintext

{% for plugin, args in pillar['vim']['plugins'].items() %}
{{ plugin }}:
git.latest:
- name: {{ args['name'] }}
- target: {{ salt['user.info']( pillar['username'] ).home }}/.vim/bundle/{{ plugin }}
- user: {{ pillar['username'] }}
{% endfor %}