Feat: nvim and alacritty config

This commit is contained in:
2020-05-26 09:03:54 +02:00
parent 08a243b294
commit 3bf5ca190d
26 changed files with 3048 additions and 15 deletions

View File

@@ -25,6 +25,7 @@
- zathura-pdf-mupdf
- xdotool
- guvcview
- alacritty
state: present
- name: Install 3D printing packages
@@ -78,23 +79,25 @@
- ttf-droid-sans-mono-slashed-powerline-git
- ttf-literation-mono-powerline-git
- ttf-opendyslexic
- nerd-fonts-ubuntu-mono
- nerd-fonts-droid-sans-mono
become: yes
become_user: aur_builder
- name: Download st
git:
repo: https://git.opytex.org/lafrite/st.git
dest: /home/aur_builder/st
register: st_update
become: yes
become_user: aur_builder
- name: Install st
command: "makepkg -si --noconfirm"
args:
chdir: "/home/aur_builder/st/"
when: st_update is changed
become: yes
become_user: aur_builder
# - name: Download st
# git:
# repo: https://git.opytex.org/lafrite/st.git
# dest: /home/aur_builder/st
# register: st_update
# become: yes
# become_user: aur_builder
#
# - name: Install st
# command: "makepkg -si --noconfirm"
# args:
# chdir: "/home/aur_builder/st/"
# when: st_update is changed
# become: yes
# become_user: aur_builder

View File

@@ -88,12 +88,14 @@
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: editor == 'vim'
- name: dotfiles -- Creates .vim/autoload/
file:
path: /home/{{ item.username }}/.vim/autoload/
state: directory
with_items: "{{ me }}"
when: editor == 'vim'
- name: dotfiles -- Download plug.vim
get_url:
@@ -102,6 +104,7 @@
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: editor == 'vim'
- name: dotfiles -- Copy vimrc
template:
@@ -110,6 +113,34 @@
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: editor == 'vim'
- name: dotfiles -- Copy nvim config
copy:
src: files/dotfiles/nvim
dest: /home/{{ item.username }}/.config/nvim
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: editor == 'nvim'
- name: dotfiles -- Download plug.vim for nvim
get_url:
url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
dest: /home/{{ item.username }}/.config/nvim/autoload/plug.vim
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: editor == 'nvim'
- name: dotfiles -- Copy alacritty config
copy:
src: files/dotfiles/alacritty
dest: /home/{{ item.username }}/.config/alacritty
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
# Ssh config
- name: dotfiles -- Creates .ssh