2022-01-05 21:24:28 +00:00
|
|
|
---
|
2022-01-30 10:47:28 +00:00
|
|
|
- name: Dependencies
|
2022-01-05 21:24:28 +00:00
|
|
|
ansible.builtin.package:
|
|
|
|
name:
|
2022-01-30 10:47:28 +00:00
|
|
|
- autoconf
|
|
|
|
- automake
|
|
|
|
- cmake
|
|
|
|
- curl
|
|
|
|
- doxygen
|
|
|
|
- g++
|
|
|
|
- gettext
|
|
|
|
- libtool
|
|
|
|
- libtool-bin
|
|
|
|
- ninja-build
|
|
|
|
- pkg-config
|
|
|
|
- unzip
|
2022-01-05 21:24:28 +00:00
|
|
|
state: latest
|
2022-01-30 10:47:28 +00:00
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: Clone
|
|
|
|
ansible.builtin.git:
|
|
|
|
clone: yes
|
|
|
|
depth: 1
|
|
|
|
dest: "{{ ansible_user_dir }}/neovim"
|
|
|
|
repo: https://github.com/neovim/neovim.git
|
|
|
|
# single_branch: yes
|
|
|
|
update: yes
|
|
|
|
version: "{{ neovim_version | default('master') }}"
|
|
|
|
register: clone
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
make:
|
|
|
|
chdir: "{{ ansible_user_dir }}/neovim"
|
|
|
|
params:
|
|
|
|
CMAKE_BUILD_TYPE: RelWithDebInfo
|
|
|
|
when: clone.changed
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
make:
|
|
|
|
chdir: "{{ ansible_user_dir }}/neovim"
|
|
|
|
target: install
|
|
|
|
become: yes
|
|
|
|
when: clone.changed
|
|
|
|
|
|
|
|
- name: Remove build folder
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ ansible_user_dir }}/neovim/build"
|
|
|
|
state: absent
|
|
|
|
become: yes
|
2022-01-05 21:24:28 +00:00
|
|
|
|
|
|
|
- name: Create .config/nvim directory
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ ansible_user_dir }}/.config/nvim"
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Configuration files
|
|
|
|
ansible.builtin.file:
|
2022-04-26 19:51:24 +00:00
|
|
|
src: "{{ role_path }}/files/{{ neovim_config_item }}"
|
|
|
|
dest: "{{ ansible_user_dir }}/.config/nvim/{{ neovim_config_item }}"
|
2022-01-05 21:24:28 +00:00
|
|
|
state: link
|
2022-04-26 19:51:24 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: neovim_config_item
|
2022-01-05 21:24:28 +00:00
|
|
|
with_items:
|
2022-01-09 23:24:41 +00:00
|
|
|
- after
|
|
|
|
- autoload
|
2022-01-05 21:24:28 +00:00
|
|
|
- init.lua
|
|
|
|
- lua
|