pinch-dotfiles/salty/base/neovim/init.sls

23 lines
504 B
Text
Raw Normal View History

{% 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' %}
pkgrepo.managed:
- ppa: {{ neovim.ppa }}
{% endif %}
2017-03-18 07:01:38 +00:00
pkg.installed:
- name: {{ neovim.name }}
{% if grains['os_family'] == 'MacOS' %}
- taps: {{ neovim.taps }}
2017-03-18 07:01:38 +00:00
{% endif %}
# TODO: fix the python for MacOS
{% if grains['os_family'] != 'MacOS' %}
python-neovim:
pkg.installed:
- pkgs:
2017-03-19 01:19:22 +00:00
- {{ neovim.python2 }}
- {{ neovim.python3 }}
{% endif %}
2017-03-18 17:14:58 +00:00