Files
ansible/roles/ubuntu/tasks/nvim.yml
Tuan-Dat Tran 6dc7e5ac27 Added ubuntu setup
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2025-02-10 21:33:40 +01:00

26 lines
661 B
YAML

---
- name: Check if Neovim config directory already exists
ansible.builtin.stat:
path: "{{ nvim_config_path }}"
register: nvim_config
- name: Clone LazyVim starter to Neovim config directory
ansible.builtin.git:
repo: https://github.com/LazyVim/starter
dest: "{{ nvim_config_path }}"
clone: true
update: false
when: not nvim_config.stat.exists
- name: Remove .git directory from Neovim config
ansible.builtin.file:
path: "{{ nvim_config_path }}/.git"
state: absent
when: not nvim_config.stat.exists
- name: Install neovim npm package globally
community.general.npm:
name: neovim
global: true
become: true