This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/neovim/tasks/main.yml
2022-12-02 20:10:38 +01:00

38 lines
847 B
YAML

- name: Install prerequisite APT packages
# https://github.com/neovim/neovim/wiki/Building-Neovim#build-prerequisites
become: true
apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
pkg:
- ninja-build
- gettext
- libtool
- libtool-bin
- autoconf
- automake
- cmake
- g++
- pkg-config
- unzip
- curl
- doxygen
- name: Pull neovim repository
become: true
git:
repo: https://github.com/neovim/neovim.git
dest: ~/neovim
- name: Build neovim
become: true
make:
chdir: ~/neovim
params:
CMAKE_BUILD_TYPE: RelWithDebInfo
changed_when: false # I lie a bit, but neovim makefile doesn't cooperate
- name: Install neovim
become: true
make:
chdir: ~/neovim
target: install
changed_when: false # Idem