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:
parent
ff1562506d
commit
dad459852c
3 changed files with 6 additions and 11 deletions
|
@ -12,7 +12,7 @@
|
|||
path: "~/.{{ item }}/bash"
|
||||
state: directory
|
||||
loop:
|
||||
- cache
|
||||
- cache
|
||||
- config
|
||||
|
||||
- name: Deploy bash profile
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
xdg_config_home: "~/.config"
|
||||
xdg_cache_home: "~/.cache"
|
||||
xdg_data_home: "~/.local/share"
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue