mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-11-14 11:45:25 +00:00
36 lines
895 B
YAML
36 lines
895 B
YAML
- name: Install neovim
|
|
become: true
|
|
package:
|
|
name:
|
|
- neovim
|
|
state: present
|
|
|
|
- name: Prepare vim config directory
|
|
file:
|
|
path: ~/.config/nvim/
|
|
state: directory
|
|
mode: '0755'
|
|
|
|
- name: clone Packer repo (Install packer)
|
|
ansible.builtin.git:
|
|
repo: https://github.com/wbthomason/packer.nvim.git
|
|
depth: 1
|
|
dest: ~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
|
update: no
|
|
|
|
- name: Copy nvim config directory
|
|
copy:
|
|
src: dotfiles/nvim/
|
|
dest: ~/.config/nvim/
|
|
|
|
- name: Debug extentions
|
|
debug:
|
|
msg: "TreeSitter: {{ nvim_extention_treesitter }}"
|
|
|
|
- name: setup nvim extention treesitter
|
|
shell: |
|
|
echo {{ empty_lua_module }} > {{ nvim_extention_treesitter_file }}
|
|
when: nvim_extention_treesitter
|
|
- name: remove nvim extention treesitter
|
|
shell: "rm -rf {{ nvim_extention_treesitter_file }}"
|
|
when: not nvim_extention_treesitter
|