2017-03-19 00:54:02 +00:00
|
|
|
{% from "neovim/map.jinja" import neovim with context %}
|
|
|
|
|
2017-03-18 07:01:38 +00:00
|
|
|
neovim-install:
|
2017-03-18 17:14:58 +00:00
|
|
|
{% if grains['os_family'] == 'Debian' %}
|
2017-03-18 07:20:46 +00:00
|
|
|
pkgrepo.managed:
|
2017-03-19 00:54:02 +00:00
|
|
|
- ppa: {{ neovim.ppa }}
|
2017-03-18 07:20:46 +00:00
|
|
|
{% endif %}
|
2017-03-18 07:01:38 +00:00
|
|
|
pkg.installed:
|
2017-03-19 00:54:02 +00:00
|
|
|
- name: {{ neovim.name }}
|
|
|
|
{% if grains['os_family'] == 'MacOS' %}
|
|
|
|
- taps: {{ neovim.taps }}
|
2017-03-18 07:01:38 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2017-03-19 00:54:02 +00:00
|
|
|
# TODO: fix the python for MacOS
|
2017-03-19 02:21:08 +00:00
|
|
|
{% if grains['os_family'] == 'Arch' %}
|
2017-03-19 00:54:02 +00:00
|
|
|
python-neovim:
|
|
|
|
pkg.installed:
|
|
|
|
- pkgs:
|
2017-03-19 01:19:22 +00:00
|
|
|
- {{ neovim.python2 }}
|
|
|
|
- {{ neovim.python3 }}
|
2017-03-19 00:54:02 +00:00
|
|
|
{% endif %}
|
2017-03-18 17:14:58 +00:00
|
|
|
|