Feat: Install neovim and set in Choux

This commit is contained in:
Bertrand Benjamin 2020-05-26 09:10:35 +02:00
parent 3bf5ca190d
commit ad4c081b62
3 changed files with 6 additions and 4 deletions

View File

@ -55,6 +55,8 @@
- profanity - profanity
- neomutt - neomutt
- youtube-dl - youtube-dl
- neovim
- python-pynvim
state: present state: present
when: not minimal or not server when: not minimal or not server

View File

@ -81,6 +81,7 @@
register: fishplugin register: fishplugin
# Vim config # Vim config
#
- name: dotfiles -- Copy .vim/ - name: dotfiles -- Copy .vim/
copy: copy:
src: files/dotfiles/vim/ src: files/dotfiles/vim/
@ -88,14 +89,12 @@
owner: "{{ item.username }}" owner: "{{ item.username }}"
group: "{{ item.group }}" group: "{{ item.group }}"
with_items: "{{ me }}" with_items: "{{ me }}"
when: editor == 'vim'
- name: dotfiles -- Creates .vim/autoload/ - name: dotfiles -- Creates .vim/autoload/
file: file:
path: /home/{{ item.username }}/.vim/autoload/ path: /home/{{ item.username }}/.vim/autoload/
state: directory state: directory
with_items: "{{ me }}" with_items: "{{ me }}"
when: editor == 'vim'
- name: dotfiles -- Download plug.vim - name: dotfiles -- Download plug.vim
get_url: get_url:
@ -104,7 +103,6 @@
owner: "{{ item.username }}" owner: "{{ item.username }}"
group: "{{ item.group }}" group: "{{ item.group }}"
with_items: "{{ me }}" with_items: "{{ me }}"
when: editor == 'vim'
- name: dotfiles -- Copy vimrc - name: dotfiles -- Copy vimrc
template: template:
@ -113,8 +111,8 @@
owner: "{{ item.username }}" owner: "{{ item.username }}"
group: "{{ item.group }}" group: "{{ item.group }}"
with_items: "{{ me }}" with_items: "{{ me }}"
when: editor == 'vim'
# Neovim config
- name: dotfiles -- Copy nvim config - name: dotfiles -- Copy nvim config
copy: copy:
src: files/dotfiles/nvim src: files/dotfiles/nvim
@ -134,6 +132,7 @@
when: editor == 'nvim' when: editor == 'nvim'
# Alacritty terminal
- name: dotfiles -- Copy alacritty config - name: dotfiles -- Copy alacritty config
copy: copy:
src: files/dotfiles/alacritty src: files/dotfiles/alacritty

View File

@ -1,5 +1,6 @@
--- ---
prompt: fish prompt: fish
editor: nvim
deploy_public_key: id_ed25519_home.pub deploy_public_key: id_ed25519_home.pub