Create configuration directories for nvim and tmux

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2020-10-11 20:33:50 +02:00
parent ed17ed1348
commit c83b93a64f
No known key found for this signature in database
GPG key ID: 8535F3BCF69B3D69
2 changed files with 10 additions and 5 deletions

View file

@ -1,8 +1,10 @@
---
- name: Create init.vim
template:
src: templates/init.vim.j2
dest: ~/.config/nvim/init.vim
block:
- shell: mkdir -p ~/.config/nvim
- template:
src: templates/init.vim.j2
dest: ~/.config/nvim/init.vim
- name: Install vim-plug
shell: sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
shell: sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

View file

@ -1,4 +1,7 @@
---
- name: Create .tmux
shell: mkdir -p ~/.tmux
- name: Clone tpm
git:
repo: https://github.com/tmux-plugins/tpm
@ -12,4 +15,4 @@
- name: Create tmux status configuration
template:
src: templates/tmux_status.conf.j2
dest: ~/.tmux/status.conf
dest: ~/.tmux/status.conf