Nvim role cleanup

This commit is contained in:
Sagi Dayan 2023-02-21 18:51:51 +02:00
parent 60a740f94a
commit 9ae429848c
Signed by: sagi
GPG key ID: FAB96BFC63B46458
2 changed files with 7 additions and 2 deletions

View file

@ -1,2 +1,4 @@
---
nvim_extention_treesitter: false
nvim_extention_treesitter_file: ~/.config/nvim/lua/user/packer_extention_treesitter.lua
empty_lua_module: "return {}"

View file

@ -27,7 +27,10 @@
debug:
msg: "TreeSitter: {{ nvim_extention_treesitter }}"
- name: nvim extention treesitter
- name: setup nvim extention treesitter
shell: |
echo "return {}" > ~/.config/nvim/lua/user/packer_extention_treesitter.lua
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