linux-config/roles/vim_user/tasks/main.yml

37 lines
895 B
YAML
Raw Normal View History

- name: Install neovim
2021-10-22 11:45:20 +00:00
become: true
package:
name:
- neovim
state: present
2021-10-22 11:45:20 +00:00
- name: Prepare vim config directory
2021-10-22 11:45:20 +00:00
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
2021-10-22 11:45:20 +00:00
- name: Copy nvim config directory
2021-10-22 11:45:20 +00:00
copy:
src: dotfiles/nvim/
dest: ~/.config/nvim/
- name: Debug extentions
debug:
msg: "TreeSitter: {{ nvim_extention_treesitter }}"
2023-02-21 16:51:51 +00:00
- name: setup nvim extention treesitter
shell: |
2023-02-21 16:51:51 +00:00
echo {{ empty_lua_module }} > {{ nvim_extention_treesitter_file }}
when: nvim_extention_treesitter
2023-02-21 16:51:51 +00:00
- name: remove nvim extention treesitter
shell: "rm -rf {{ nvim_extention_treesitter_file }}"
when: not nvim_extention_treesitter