toansible: Add neovim installation
This commit is contained in:
parent
dc2116c541
commit
2af5d18879
4 changed files with 41 additions and 19 deletions
19
configs.yml
19
configs.yml
|
@ -445,25 +445,6 @@ vim:
|
||||||
- run:
|
- run:
|
||||||
- pip install -U hdl-checker --user
|
- pip install -U hdl-checker --user
|
||||||
|
|
||||||
neovim:
|
|
||||||
- depend:
|
|
||||||
- vim
|
|
||||||
- install:
|
|
||||||
arch:
|
|
||||||
- python-pynvim
|
|
||||||
debian:
|
|
||||||
- python3-pynvim
|
|
||||||
both:
|
|
||||||
- neovim
|
|
||||||
- run:
|
|
||||||
command: pip install -U neovim --user
|
|
||||||
condition: debian
|
|
||||||
- run:
|
|
||||||
- pip install -U neovim-remote --user
|
|
||||||
- symlink:
|
|
||||||
- dotfiles/vim/init.vim
|
|
||||||
- ~/.config/nvim/init.vim
|
|
||||||
|
|
||||||
zsh:
|
zsh:
|
||||||
- install:
|
- install:
|
||||||
arch:
|
arch:
|
||||||
|
|
5
playbook.yml
Normal file
5
playbook.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- neovim
|
36
roles/neovim/tasks/main.yml
Normal file
36
roles/neovim/tasks/main.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Pull in vim installation
|
||||||
|
include_role:
|
||||||
|
name: vim
|
||||||
|
|
||||||
|
- name: Install packages (Arch)
|
||||||
|
become: true
|
||||||
|
pacman:
|
||||||
|
name: python-pynvim, neovim
|
||||||
|
when:
|
||||||
|
ansible_distribution == 'Archlinux'
|
||||||
|
|
||||||
|
- name: Install packages (Debian)
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
name: python3-pynvim, neovim
|
||||||
|
when:
|
||||||
|
ansible_distribution == 'Debian'
|
||||||
|
|
||||||
|
- name: Install neovim with pip for Debian
|
||||||
|
pip:
|
||||||
|
name: neovim
|
||||||
|
extra_args: --user
|
||||||
|
when:
|
||||||
|
ansible_distribution == 'Debian'
|
||||||
|
|
||||||
|
- name: Install neovim-remote
|
||||||
|
pip:
|
||||||
|
name: neovim-remote
|
||||||
|
extra_args: --user
|
||||||
|
|
||||||
|
- name: Copy neovim config
|
||||||
|
copy:
|
||||||
|
src: init.vim
|
||||||
|
dest: ~/.config/nvim/init.vim
|
Loading…
Add table
Reference in a new issue