22 lines
504 B
Text
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 %}
|
|
|