--- - name: install prerequisites (apt) package: name: - nodejs - npm - python - python-pip - ripgrep state: latest - name: install prerequisites (pip) become_user: "{{ account.name }}" pip: name: - pynvim state: latest extra_args: --user - name: install neovim package: name: - neovim state: latest - name: create nvim plugin directory become_user: "{{ account.name }}" file: path: "{{ account.home }}/.local/share/nvim/site/autoload/" state: directory - name: install vim-plug become_user: "{{ account.name }}" 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 become_user: "{{ account.name }}" shell: chdir: "{{ dotfiles }}/nvim" cmd: ./install.sh creates: "{{ account.home }}/.config/nvim/init.vim" - name: install nvim plugins become_user: "{{ account.name }}" shell: cmd: nvim +PlugInstall +PlugUpdate +qall