pinch-dotfiles/salty/base/neovim/init.sls
2017-03-18 21:19:22 -04:00

22 lines
504 B
Text

{% from "neovim/map.jinja" import neovim with context %}
neovim-install:
{% if grains['os_family'] == 'Debian' %}
pkgrepo.managed:
- ppa: {{ neovim.ppa }}
{% endif %}
pkg.installed:
- name: {{ neovim.name }}
{% if grains['os_family'] == 'MacOS' %}
- taps: {{ neovim.taps }}
{% endif %}
# TODO: fix the python for MacOS
{% if grains['os_family'] != 'MacOS' %}
python-neovim:
pkg.installed:
- pkgs:
- {{ neovim.python2 }}
- {{ neovim.python3 }}
{% endif %}