Simplify vim role

It might make sense to make the XDG_* stuff configurable in the future,
but let's keep it simple for now.
This commit is contained in:
Fernando Schauenburg 2019-11-15 19:19:12 +00:00
parent ff1562506d
commit dad459852c
3 changed files with 6 additions and 11 deletions

View file

@ -12,7 +12,7 @@
path: "~/.{{ item }}/bash"
state: directory
loop:
- cache
- cache
- config
- name: Deploy bash profile

View file

@ -1,5 +0,0 @@
---
xdg_config_home: "~/.config"
xdg_cache_home: "~/.cache"
xdg_data_home: "~/.local/share"

View file

@ -4,14 +4,14 @@
path: "{{ item }}"
state: directory
loop:
- "{{ xdg_cache_home }}/vim"
- "{{ xdg_config_home }}/vim"
- "{{ xdg_config_home }}/vim/autoload"
- "~/.cache/vim"
- "~/.config/vim"
- "~/.config/vim/autoload"
- name: Deploy vim plug and vimrc
file:
src: "{{ role_path }}/files/{{ item }}"
dest: "{{ xdg_config_home }}/vim/{{ item }}"
dest: "~/.config/vim/{{ item }}"
state: link
force: yes
loop:
@ -19,5 +19,5 @@
- vimrc
- name: Install configured vim plugins
shell: vim -u "{{ xdg_config_home }}/vim/vimrc" +PlugInstall +qall
shell: vim -u "~/.config/vim/vimrc" +PlugInstall +qall