dotfiles/roles/neovim/tasks/main.yaml

29 lines
575 B
YAML

---
- name: Add neovim PPA
apt_repository:
repo: "ppa:neovim-ppa/unstable"
become: true
- name: Install Neovim
ansible.builtin.package:
name:
- neovim
state: latest
become: true
- name: Create .config/nvim directory
ansible.builtin.file:
path: "{{ ansible_user_dir }}/.config/nvim"
state: directory
- name: Configuration files
ansible.builtin.file:
src: "{{ role_path }}/files/{{ item }}"
dest: "{{ ansible_user_dir }}/.config/nvim/{{ item }}"
state: link
with_items:
- after
- autoload
- init.lua
- lua