You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.4 KiB

# - name: Neovim folder exists
# stat:
# path: ~/neovim
# register: nvim_folder
# tags:
# - install
# - neovim
# - name: Remove neovim
# shell: rm -rf ~/neovim
# tags:
# - install
# - neovim
- name: Clone Neovim
ansible.builtin.git:
repo: 'https://github.com/neovim/neovim.git'
dest: "{{ lookup('env', 'HOME') }}/neovim"
update: true
force: true
tags:
- install
- neovim
# when: nvim_folder.stat.exists
#
# - name: Clone Neovim
# ansible.builtin.git:
# repo: 'https://github.com/neovim/neovim.git'
# dest: "{{ lookup('env', 'HOME') }}/neovim"
# tags:
# - install
# - neovim
# when: nvim_folder.stat.exists
- name: Build neovim
shell: "cd {{ lookup('env', 'HOME') }}/neovim && make -j 20"
tags:
- install
- neovim
- name: Install neovim
become: true
shell: "cd {{ lookup('env', 'HOME') }}/neovim && make install"
tags:
- install
- neovim
- name: Neovim Plugin Development 1
become: true
apt: name=luarocks
tags:
- install
- neovim
- name: Neovim Lazy update
shell: "nvim --headless '+Lazy sync' +q"
tags:
- install
- neovim
- name: Neovim TSUpdate
shell: "nvim --headless '+TSUpdateSync clean' +q"
tags:
- install
- neovim
# - name: Neovim Plugin Development 2 luacheck
# become: true
# shell: luarocks install luacheck
# tags:
# - install
# - neovim