paulbsd-salt/states/neovim/plugins.sls

27 lines
608 B
Plaintext
Raw Normal View History

2022-05-14 11:23:16 +02:00
---
{%- from "neovim/map.jinja" import neovim with context %}
neovim-plugin-git-dep:
pkg.installed:
- pkgs:
- git
- python3-jedi
- yamllint
neovim-plugin-dirs:
file.directory:
- name: {{ neovim.plugins_dir }}
- makedirs: true
2023-08-29 18:00:51 +02:00
{%- for name, value in neovim.plugins.items() %}
neovim-plugin-{{ name }}:
2022-05-14 11:23:16 +02:00
git.latest:
2023-08-29 18:00:51 +02:00
- name: {{ value.url }}
- target: {{ neovim.plugins_dir }}/{{ name }}
2022-07-16 00:48:49 +02:00
- rev: {{ value.rev|default('HEAD') }}
- force_reset: true
2022-05-14 11:23:16 +02:00
- submodules: true
2023-03-31 17:40:39 +02:00
- parallel: true
2022-12-06 20:28:48 +01:00
- require:
- file: neovim-plugin-dirs
2022-05-14 11:23:16 +02:00
{%- endfor %}