paulbsd-salt/states/vim/plugins.sls
2021-08-19 21:16:41 +02:00

22 lines
460 B
Plaintext

---
{%- from "vim/map.jinja" import vim with context %}
vim-plugin-git-dep:
pkg.installed:
- pkgs:
- git
- python3-jedi
- yamllint
vim-plugin-dirs:
file.directory:
- name: {{ vim.plugins_dir }}
- makedirs: true
{%- for key, value in vim.plugins.items() %}
vim-plugin-{{ value.name }}:
git.latest:
- name: {{ value.repo }}
- target: {{ vim.plugins_dir }}/{{ value.name }}
- submodules: true
{%- endfor %}