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