pinch-dotfiles/salty/base/neovim/init.sls
2017-03-18 13:14:58 -04:00

18 lines
422 B
Text

neovim-install:
{% if grains['os_family'] == 'Debian' %}
pkgrepo.managed:
- ppa: neovim-ppa/unstable
{% endif %}
pkg.installed:
{% if grains['kernel'] == 'Darwin' %}
- name: neovim
- taps: 'neovim/neovim'
{% elif grains['kernel'] == 'Linux' %}
- name: neovim
{% endif %}
os-family:
file.managed:
- name: {{ grains.homedir }}/os_family
- source: salt:///neovim/files/os_fams