2023-01-12 20:36:07 +00:00
|
|
|
- name: Uninstall vim
|
2023-01-12 20:41:01 +00:00
|
|
|
pacman:
|
2023-01-12 20:36:07 +00:00
|
|
|
name: vim
|
|
|
|
state: absent
|
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
|
|
|
|
2021-09-11 22:47:23 +01:00
|
|
|
- name: Install neovim
|
2021-11-07 00:45:19 +00:00
|
|
|
kewlfft.aur.aur:
|
2021-09-11 22:47:23 +01:00
|
|
|
name: "{{ item }}"
|
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
|
|
|
loop:
|
|
|
|
- neovim
|
|
|
|
- neovim-qt
|
|
|
|
|
|
|
|
- name: Neovim config
|
|
|
|
git:
|
|
|
|
repo: https://git.theorangeone.net/sys/vim-config.git
|
|
|
|
dest: "{{ home }}/.config/nvim"
|
|
|
|
force: true
|
|
|
|
become: true
|
|
|
|
become_user: "{{ user }}"
|
|
|
|
|
2023-01-12 20:32:28 +00:00
|
|
|
- name: Create root config directory
|
|
|
|
file:
|
2023-02-02 20:08:10 +00:00
|
|
|
path: /root/.config
|
2023-01-12 20:32:28 +00:00
|
|
|
state: directory
|
|
|
|
mode: 0700
|
|
|
|
|
2021-09-11 22:47:23 +01:00
|
|
|
- name: Install config for root user
|
|
|
|
file:
|
|
|
|
src: "{{ home }}/.config/nvim"
|
|
|
|
dest: /root/.config/nvim
|
|
|
|
state: link
|
|
|
|
|
|
|
|
# Aliases are too boring
|
|
|
|
- name: Install vim alias
|
|
|
|
file:
|
|
|
|
src: /usr/bin/nvim
|
|
|
|
dest: /usr/bin/vim
|
|
|
|
state: link
|