blob: 0609f9b7b5fad5918571c5a5280ed71c77e47161 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
---
- name: Create folders
file:
path: "{{ lookup('env', 'HOME') }}/.config/nvim/autoload"
state: directory
- name: Link configuration
file:
src: "{{ role_path }}/files/init.vim"
dest: "{{ lookup('env', 'HOME') }}/.config/nvim/init.vim"
state: link
- name: Install packages
become: yes
dnf:
name: "{{ item.key }}"
state: "{{ item.value.state | default('present') }}"
with_dict: "{{packages}}"
vars:
packages:
python:
python-devel:
python-neovim:
vim:
neovim:
- name: Install vim-plug
get_url:
url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
dest: "$HOME/.config/nvim/autoload/plug.vim"
- name: Install vim-plug plugins
shell: nvim +PlugInstall +qall --headless
|