---
- name: install prerequisites (apt)
package:
name:
- nodejs
- npm
- python
- python-pip
- ripgrep
state: latest
- name: install prerequisites (pip)
become_user: "{{ account.name }}"
pip:
- pynvim
extra_args: --user
- name: install neovim
- neovim
- name: create nvim plugin directory
file:
path: "{{ account.home }}/.local/share/nvim/site/autoload/"
state: directory
- name: install vim-plug
get_url:
url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
dest: "{{ account.home }}/.local/share/nvim/site/autoload/plug.vim"
- name: install nvim config
shell:
chdir: "{{ dotfiles }}/nvim"
cmd: ./install.sh
creates: "{{ account.home }}/.config/nvim/init.vim"
- name: install nvim plugins
cmd: nvim +PlugInstall +PlugUpdate +qall