Merge branch 'updates' into 'main'

Nvim role cleanup

See merge request sagidayan/linux-config!22
This commit is contained in:
Sagi Dayan 2023-02-21 17:05:01 +00:00
commit 6bf0b284f9
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