pinch-dotfiles/salty/base/neovim/init.sls
2017-03-18 20:54:02 -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:
- {{ grains.python2 }}
- {{ grains.python3 }}
{% endif %}