feat(ubuntu): finished up ubuntu desktop setup
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
25
roles/setup/tasks/nvim.yml
Normal file
25
roles/setup/tasks/nvim.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user