0
0

Removed neovim role

This commit is contained in:
Opnxng 2024-10-26 09:59:08 +08:00
parent a1a92ce91a
commit 48d031035e
2 changed files with 0 additions and 60 deletions

View File

@ -1,59 +0,0 @@
- name: Purge Vim
apt:
name: vim
state: absent
- name: Install Neovim
apt:
name:
- neovim
state: latest
install_recommends: false
- name: Create .config folder
file:
path: "/home/{{ user }}/.config"
state: directory
owner: 1000
group: 1000
mode: "0755"
- name: Create nvim folder
file:
path: "/home/{{ user }}/.config/nvim"
state: directory
owner: 1000
group: 1000
mode: "0755"
become: yes
become_method: sudo
become_user: "{{ user }}"
- name: Copy nvim config
copy:
src: "/home/{{ user }}/.config/nvim/"
dest: "/home/{{ user }}/.config/nvim/"
owner: 1000
group: 1000
mode: "0755"
become: yes
become_method: sudo
become_user: "{{ user }}"
- name: Install Vim Plug
command: >
vim -u /home/{{ user }}/.config/nvim/init.vim +'PlugInstall --sync' +qa
args:
creates: "/home/{{ user }}/.config/nvim/plugged"
become: yes
become_method: sudo
become_user: "{{ user }}"
- name: Uninstall Vim Plug
command: >
vim -u /home/{{ user }}/.config/nvim/init.vim +'PlugClean --sync' +qa
args:
creates: "/home/{{ user }}/.config/nvim/plugged"
become: yes
become_method: sudo
become_user: "{{ user }}"

View File

@ -35,7 +35,6 @@
roles: roles:
# - grub-opnxng # - grub-opnxng
# - neovim
# - disable-root # - disable-root
# - timezone # - timezone
# - chrony # - chrony